fork/rust

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

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

master
1.4 KiB54 linesraw
1error: unknown byte escape: `f`
2  --> $DIR/byte-literals.rs:3:21
3   |
4LL | static FOO: 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-literals.rs:6: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-literals.rs:7:10
19   |
20LL |     b'\x0Z';
21   |          ^ invalid character in numeric character escape
22
23error: byte constant must be escaped: `\t`
24  --> $DIR/byte-literals.rs:8:7
25   |
26LL |     b'    ';
27   |       ^^^^ help: escape the character: `\t`
28
29error: byte constant must be escaped: `'`
30  --> $DIR/byte-literals.rs:9:7
31   |
32LL |     b''';
33   |       ^ help: escape the character: `\'`
34
35error: non-ASCII character in byte literal
36  --> $DIR/byte-literals.rs:10:7
37   |
38LL |     b'é';
39   |       ^ must be ASCII
40   |
41help: if you meant to use the unicode code point for 'é', use a \xHH escape
42   |
43LL |     b'\xE9';
44   |       ~~~~
45
46error[E0763]: unterminated byte constant
47  --> $DIR/byte-literals.rs:11:6
48   |
49LL |     b'a
50   |      ^^^^
51
52error: aborting due to 7 previous errors
53
54For more information about this error, try `rustc --explain E0763`.