fork/rust

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

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

master
1.3 KiB50 linesraw
1error: unknown byte escape: `f`
2  --> $DIR/byte-string-literals.rs:1:32
3   |
4LL | static FOO: &'static [u8] = b"\f";
5   |                                ^ unknown byte escape
6   |
7   = help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
8
9error: unknown byte escape: `f`
10  --> $DIR/byte-string-literals.rs:4:8
11   |
12LL |     b"\f";
13   |        ^ unknown byte escape
14   |
15   = help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
16
17error: invalid character in numeric character escape: `Z`
18  --> $DIR/byte-string-literals.rs:5:10
19   |
20LL |     b"\x0Z";
21   |          ^ invalid character in numeric character escape
22
23error: non-ASCII character in byte string literal
24  --> $DIR/byte-string-literals.rs:6:7
25   |
26LL |     b"é";
27   |       ^ must be ASCII
28   |
29help: if you meant to use the unicode code point for 'é', use a \xHH escape
30   |
31LL |     b"\xE9";
32   |       ~~~~
33
34error: non-ASCII character in raw byte string literal
35  --> $DIR/byte-string-literals.rs:7:10
36   |
37LL |     br##"é"##;
38   |          ^ must be ASCII
39
40error[E0766]: unterminated double quote byte string
41  --> $DIR/byte-string-literals.rs:8:6
42   |
43LL |       b"a
44   |  ______^
45LL | | }
46   | |__^
47
48error: aborting due to 6 previous errors
49
50For more information about this error, try `rustc --explain E0766`.