]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/byte-literals.stderr
Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472
[rust.git] / src / test / ui / parser / byte-literals.stderr
1 error: unknown byte escape: `f`
2   --> $DIR/byte-literals.rs:3:21
3    |
4 LL | static FOO: u8 = b'\f';
5    |                     ^ unknown byte escape
6    |
7    = help: for more information, visit <https://static.rust-lang.org/doc/master/reference.html#literals>
8
9 error: unknown byte escape: `f`
10   --> $DIR/byte-literals.rs:6:8
11    |
12 LL |     b'\f';
13    |        ^ unknown byte escape
14    |
15    = help: for more information, visit <https://static.rust-lang.org/doc/master/reference.html#literals>
16
17 error: invalid character in numeric character escape: `Z`
18   --> $DIR/byte-literals.rs:7:10
19    |
20 LL |     b'\x0Z';
21    |          ^ invalid character in numeric character escape
22
23 error: byte constant must be escaped: `\t`
24   --> $DIR/byte-literals.rs:8:7
25    |
26 LL |     b'    ';
27    |       ^^^^ help: escape the character: `\t`
28
29 error: byte constant must be escaped: `'`
30   --> $DIR/byte-literals.rs:9:7
31    |
32 LL |     b''';
33    |       ^ help: escape the character: `\'`
34
35 error: non-ASCII character in byte constant
36   --> $DIR/byte-literals.rs:10:7
37    |
38 LL |     b'é';
39    |       ^ byte constant must be ASCII
40    |
41 help: if you meant to use the unicode code point for 'é', use a \xHH escape
42    |
43 LL |     b'\xE9';
44    |       ~~~~
45
46 error[E0763]: unterminated byte constant
47   --> $DIR/byte-literals.rs:11:6
48    |
49 LL |     b'a
50    |      ^^^^
51
52 error: aborting due to 7 previous errors
53
54 For more information about this error, try `rustc --explain E0763`.