fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB49 linesraw
1error: character literal may only contain one codepoint
2  --> $DIR/str-as-char.rs:8:19
3   |
4LL |     let _: &str = '"""';
5   |                   ^^^^^
6   |
7help: if you meant to write a `str` literal, use double quotes
8   |
9LL |     let _: &str = "\"\"\"";
10   |                   ~~~~~~~~
11
12error: character literal may only contain one codepoint
13  --> $DIR/str-as-char.rs:9:19
14   |
15LL |     let _: &str = '\"\"\"';
16   |                   ^^^^^^^^
17   |
18help: if you meant to write a `str` literal, use double quotes
19   |
20LL |     let _: &str = "\"\"\"";
21   |                   ~~~~~~~~
22
23error: character literal may only contain one codepoint
24  --> $DIR/str-as-char.rs:10:19
25   |
26LL |     let _: &str = '"\"\"\\"\\"';
27   |                   ^^^^^^^^^^^^^^^^^
28   |
29help: if you meant to write a `str` literal, use double quotes
30   |
31LL |     let _: &str = "\"\"\\"\\"\\\"";
32   |                   ~~~~~~~~~~~~~~~~~~~~
33
34error[E0308]: mismatched types
35  --> $DIR/str-as-char.rs:7:19
36   |
37LL |     let _: &str = 'a';
38   |            ----   ^^^ expected `&str`, found `char`
39   |            |
40   |            expected due to this
41   |
42help: if you meant to write a `str` literal, use double quotes
43   |
44LL |     let _: &str = "a";
45   |                   ~~~
46
47error: aborting due to 4 previous errors
48
49For more information about this error, try `rustc --explain E0308`.