File: windows_paths.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 893,176 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (75 lines) | stat: -rw-r--r-- 2,663 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
error[E0308]: mismatched types
 --> examples_tests/rustc_basic/windows_paths.rs:2:9
  |
2 |     let () = "escapes stay as backslashes: \t\r\n";
  |         ^^   ------------------------------------- this expression has type `&str`
  |         |
  |         expected `str`, found `()`

error[E0308]: mismatched types
 --> examples_tests/rustc_basic/windows_paths.rs:5:9
  |
5 |     let () = r"absolute: C:/foo/file.rs";
  |         ^^   --------------------------- this expression has type `&str`
  |         |
  |         expected `str`, found `()`

error[E0308]: mismatched types
 --> examples_tests/rustc_basic/windows_paths.rs:7:9
  |
7 |     let () = r"absolute, spaces: C:/foo bar/file.rs";
  |         ^^   --------------------------------------- this expression has type `&str`
  |         |
  |         expected `str`, found `()`

error[E0308]: mismatched types
 --> examples_tests/rustc_basic/windows_paths.rs:9:9
  |
9 |     let () = r"absolute, spaces, dir: C:/foo bar/some dir/";
  |         ^^   ---------------------------------------------- this expression has type `&str`
  |         |
  |         expected `str`, found `()`

error[E0308]: mismatched types
  --> examples_tests/rustc_basic/windows_paths.rs:11:9
   |
11 |     let () = r"absolute, spaces, no extension: C:/foo bar/some file";
   |         ^^   ------------------------------------------------------- this expression has type `&str`
   |         |
   |         expected `str`, found `()`

error[E0308]: mismatched types
  --> examples_tests/rustc_basic/windows_paths.rs:14:9
   |
14 |     let () = r"relative: foo/file.rs";
   |         ^^   ------------------------ this expression has type `&str`
   |         |
   |         expected `str`, found `()`

error[E0308]: mismatched types
  --> examples_tests/rustc_basic/windows_paths.rs:17:9
   |
17 |     let () = r"unicode: Ryƫ/file.rs";
   |         ^^   ----------------------- this expression has type `&str`
   |         |
   |         expected `str`, found `()`

error[E0308]: mismatched types
  --> examples_tests/rustc_basic/windows_paths.rs:20:9
   |
20 |     let () = r"mixed seperators: C:/foo/../bar/";
   |         ^^   ----------------------------------- this expression has type `&str`
   |         |
   |         expected `str`, found `()`

error[E0308]: mismatched types
  --> examples_tests/rustc_basic/windows_paths.rs:23:9
   |
23 |     let () = r"unsupported: foo\bar";
   |         ^^   ----------------------- this expression has type `&str`
   |         |
   |         expected `str`, found `()`

error: aborting due to 9 previous errors

For more information about this error, try `rustc --explain E0308`.