]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issue-23620-invalid-escapes.stderr
8c924ad0330e9e8f92ab01555414ac3f3ce5fb71
[rustc.git] / src / test / ui / parser / issue-23620-invalid-escapes.stderr
1 error: unicode escape sequences cannot be used as a byte or in a byte string
2 --> $DIR/issue-23620-invalid-escapes.rs:2:15
3 |
4 LL | let _ = b"\u{a66e}";
5 | ^^^^^^^^
6
7 error: unicode escape sequences cannot be used as a byte or in a byte string
8 --> $DIR/issue-23620-invalid-escapes.rs:5:15
9 |
10 LL | let _ = b'\u{a66e}';
11 | ^^^^^^^^
12
13 error: incorrect unicode escape sequence
14 --> $DIR/issue-23620-invalid-escapes.rs:8:15
15 |
16 LL | let _ = b'\u';
17 | ^^ incorrect unicode escape sequence
18 |
19 = help: format of unicode escape sequences is `\u{...}`
20
21 error: numeric character escape is too short
22 --> $DIR/issue-23620-invalid-escapes.rs:11:15
23 |
24 LL | let _ = b'\x5';
25 | ^^^
26
27 error: invalid character in numeric character escape: x
28 --> $DIR/issue-23620-invalid-escapes.rs:14:17
29 |
30 LL | let _ = b'\xxy';
31 | ^
32
33 error: numeric character escape is too short
34 --> $DIR/issue-23620-invalid-escapes.rs:17:14
35 |
36 LL | let _ = '\x5';
37 | ^^^
38
39 error: invalid character in numeric character escape: x
40 --> $DIR/issue-23620-invalid-escapes.rs:20:16
41 |
42 LL | let _ = '\xxy';
43 | ^
44
45 error: unicode escape sequences cannot be used as a byte or in a byte string
46 --> $DIR/issue-23620-invalid-escapes.rs:23:15
47 |
48 LL | let _ = b"\u{a4a4} \xf \u";
49 | ^^^^^^^^
50
51 error: invalid character in numeric character escape:
52 --> $DIR/issue-23620-invalid-escapes.rs:23:27
53 |
54 LL | let _ = b"\u{a4a4} \xf \u";
55 | ^
56
57 error: incorrect unicode escape sequence
58 --> $DIR/issue-23620-invalid-escapes.rs:23:28
59 |
60 LL | let _ = b"\u{a4a4} \xf \u";
61 | ^^ incorrect unicode escape sequence
62 |
63 = help: format of unicode escape sequences is `\u{...}`
64
65 error: invalid character in numeric character escape:
66 --> $DIR/issue-23620-invalid-escapes.rs:28:17
67 |
68 LL | let _ = "\xf \u";
69 | ^
70
71 error: incorrect unicode escape sequence
72 --> $DIR/issue-23620-invalid-escapes.rs:28:18
73 |
74 LL | let _ = "\xf \u";
75 | ^^ incorrect unicode escape sequence
76 |
77 = help: format of unicode escape sequences is `\u{...}`
78
79 error: incorrect unicode escape sequence
80 --> $DIR/issue-23620-invalid-escapes.rs:32:14
81 |
82 LL | let _ = "\u8f";
83 | ^^^-
84 | |
85 | help: format of unicode escape sequences uses braces: `\u{8f}`
86
87 error: aborting due to 13 previous errors
88