blob: 7b4f22134c453a746b87528529ffc9cd7a6df40a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
error: unknown byte escape: f
--> $DIR/byte-literals.rs:16:21
|
LL | static FOO: u8 = b'/f'; //~ ERROR unknown byte escape
| ^
error: unknown byte escape: f
--> $DIR/byte-literals.rs:19:8
|
LL | b'/f'; //~ ERROR unknown byte escape
| ^
error: invalid character in numeric character escape: Z
--> $DIR/byte-literals.rs:20:10
|
LL | b'/x0Z'; //~ ERROR invalid character in numeric character escape: Z
| ^
error: byte constant must be escaped: /t
--> $DIR/byte-literals.rs:21:7
|
LL | b' '; //~ ERROR byte constant must be escaped
| ^^^^
error: byte constant must be escaped: '
--> $DIR/byte-literals.rs:22:7
|
LL | b'''; //~ ERROR byte constant must be escaped
| ^
error: byte constant must be ASCII. Use a /xHH escape for a non-ASCII byte
--> $DIR/byte-literals.rs:23:7
|
LL | b'é'; //~ ERROR byte constant must be ASCII
| ^
error: unterminated byte constant: b'a
--> $DIR/byte-literals.rs:24:5
|
LL | b'a //~ ERROR unterminated byte constant
| ^^^
error: aborting due to 7 previous errors
|