]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error: unknown byte escape: f |
dfeec247 | 2 | --> $DIR/byte-literals.rs:3:21 |
0bf4aa26 | 3 | | |
532ac7d7 XL |
4 | LL | static FOO: u8 = b'\f'; |
5 | | ^ unknown byte escape | |
0bf4aa26 XL |
6 | |
7 | error: unknown byte escape: f | |
dfeec247 | 8 | --> $DIR/byte-literals.rs:6:8 |
0bf4aa26 | 9 | | |
532ac7d7 XL |
10 | LL | b'\f'; |
11 | | ^ unknown byte escape | |
0bf4aa26 XL |
12 | |
13 | error: invalid character in numeric character escape: Z | |
dfeec247 | 14 | --> $DIR/byte-literals.rs:7:10 |
0bf4aa26 | 15 | | |
532ac7d7 | 16 | LL | b'\x0Z'; |
0bf4aa26 XL |
17 | | ^ |
18 | ||
532ac7d7 | 19 | error: byte constant must be escaped: \t |
dfeec247 | 20 | --> $DIR/byte-literals.rs:8:7 |
0bf4aa26 | 21 | | |
532ac7d7 | 22 | LL | b' '; |
0bf4aa26 XL |
23 | | ^^^^ |
24 | ||
25 | error: byte constant must be escaped: ' | |
dfeec247 | 26 | --> $DIR/byte-literals.rs:9:7 |
0bf4aa26 | 27 | | |
532ac7d7 | 28 | LL | b'''; |
0bf4aa26 XL |
29 | | ^ |
30 | ||
532ac7d7 | 31 | error: byte constant must be ASCII. Use a \xHH escape for a non-ASCII byte |
dfeec247 | 32 | --> $DIR/byte-literals.rs:10:7 |
0bf4aa26 | 33 | | |
532ac7d7 | 34 | LL | b'é'; |
0bf4aa26 XL |
35 | | ^ |
36 | ||
f035d41b | 37 | error[E0763]: unterminated byte constant |
dfeec247 | 38 | --> $DIR/byte-literals.rs:11:6 |
0bf4aa26 | 39 | | |
532ac7d7 | 40 | LL | b'a |
48663c56 | 41 | | ^^^^ |
0bf4aa26 XL |
42 | |
43 | error: aborting due to 7 previous errors | |
44 | ||
f035d41b | 45 | For more information about this error, try `rustc --explain E0763`. |