summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-23620-invalid-escapes.stderr
blob: 88d97c795fc2a30f8bde096b5651858c88ea5c72 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
error: unicode escape in byte string
  --> $DIR/issue-23620-invalid-escapes.rs:2:15
   |
LL |     let _ = b"\u{a66e}";
   |               ^^^^^^^^ unicode escape in byte string
   |
   = help: unicode escape sequences cannot be used as a byte or in a byte string

error: unicode escape in byte string
  --> $DIR/issue-23620-invalid-escapes.rs:5:15
   |
LL |     let _ = b'\u{a66e}';
   |               ^^^^^^^^ unicode escape in byte string
   |
   = help: unicode escape sequences cannot be used as a byte or in a byte string

error: incorrect unicode escape sequence
  --> $DIR/issue-23620-invalid-escapes.rs:8:15
   |
LL |     let _ = b'\u';
   |               ^^ incorrect unicode escape sequence
   |
   = help: format of unicode escape sequences is `\u{...}`

error: numeric character escape is too short
  --> $DIR/issue-23620-invalid-escapes.rs:11:15
   |
LL |     let _ = b'\x5';
   |               ^^^

error: invalid character in numeric character escape: `x`
  --> $DIR/issue-23620-invalid-escapes.rs:14:17
   |
LL |     let _ = b'\xxy';
   |                 ^ invalid character in numeric character escape

error: numeric character escape is too short
  --> $DIR/issue-23620-invalid-escapes.rs:17:14
   |
LL |     let _ = '\x5';
   |              ^^^

error: invalid character in numeric character escape: `x`
  --> $DIR/issue-23620-invalid-escapes.rs:20:16
   |
LL |     let _ = '\xxy';
   |                ^ invalid character in numeric character escape

error: unicode escape in byte string
  --> $DIR/issue-23620-invalid-escapes.rs:23:15
   |
LL |     let _ = b"\u{a4a4} \xf \u";
   |               ^^^^^^^^ unicode escape in byte string
   |
   = help: unicode escape sequences cannot be used as a byte or in a byte string

error: invalid character in numeric character escape: ` `
  --> $DIR/issue-23620-invalid-escapes.rs:23:27
   |
LL |     let _ = b"\u{a4a4} \xf \u";
   |                           ^ invalid character in numeric character escape

error: incorrect unicode escape sequence
  --> $DIR/issue-23620-invalid-escapes.rs:23:28
   |
LL |     let _ = b"\u{a4a4} \xf \u";
   |                            ^^ incorrect unicode escape sequence
   |
   = help: format of unicode escape sequences is `\u{...}`

error: invalid character in numeric character escape: ` `
  --> $DIR/issue-23620-invalid-escapes.rs:28:17
   |
LL |     let _ = "\xf \u";
   |                 ^ invalid character in numeric character escape

error: incorrect unicode escape sequence
  --> $DIR/issue-23620-invalid-escapes.rs:28:18
   |
LL |     let _ = "\xf \u";
   |                  ^^ incorrect unicode escape sequence
   |
   = help: format of unicode escape sequences is `\u{...}`

error: incorrect unicode escape sequence
  --> $DIR/issue-23620-invalid-escapes.rs:32:14
   |
LL |     let _ = "\u8f";
   |              ^^^-
   |              |
   |              help: format of unicode escape sequences uses braces: `\u{8f}`

error: aborting due to 13 previous errors