summary refs log tree commit diff
path: root/src/test/ui/parser/byte-literals.stderr
blob: ab14eeede663e5feecb7beeb371e573ad34b8cf8 (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:6:21
   |
LL | static FOO: u8 = b'/f';  //~ ERROR unknown byte escape
   |                     ^

error: unknown byte escape: f
  --> $DIR/byte-literals.rs:9:8
   |
LL |     b'/f';  //~ ERROR unknown byte escape
   |        ^

error: invalid character in numeric character escape: Z
  --> $DIR/byte-literals.rs:10:10
   |
LL |     b'/x0Z';  //~ ERROR invalid character in numeric character escape: Z
   |          ^

error: byte constant must be escaped: /t
  --> $DIR/byte-literals.rs:11:7
   |
LL |     b'    ';  //~ ERROR byte constant must be escaped
   |       ^^^^

error: byte constant must be escaped: '
  --> $DIR/byte-literals.rs:12: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:13:7
   |
LL |     b'é';  //~ ERROR byte constant must be ASCII
   |       ^

error: unterminated byte constant: b'a
  --> $DIR/byte-literals.rs:14:5
   |
LL |     b'a  //~ ERROR unterminated byte constant
   |     ^^^

error: aborting due to 7 previous errors