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`.
|