rust/src/test/ui/parser/issue-23620-invalid-escapes.stderr

89 lines
2.5 KiB
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: unicode escape sequences cannot be used as a byte or in a byte string
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:2:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"\u{a66e}";
2018-10-20 15:36:17 -05:00
| ^^^^^^^^
error: unicode escape sequences cannot be used as a byte or in a byte string
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:5:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'\u{a66e}';
2018-10-20 15:36:17 -05:00
| ^^^^^^^^
error: incorrect unicode escape sequence
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:8:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'\u';
| ^^ incorrect unicode escape sequence
2018-10-20 15:36:17 -05:00
|
= help: format of unicode escape sequences is `\u{...}`
2018-10-20 15:36:17 -05:00
error: numeric character escape is too short
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:11:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'\x5';
| ^^^
2018-10-20 15:36:17 -05:00
error: invalid character in numeric character escape: x
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:14:17
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'\xxy';
2018-10-20 15:36:17 -05:00
| ^
error: numeric character escape is too short
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:17:14
2018-10-20 15:36:17 -05:00
|
LL | let _ = '\x5';
| ^^^
2018-10-20 15:36:17 -05:00
error: invalid character in numeric character escape: x
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:20:16
2018-10-20 15:36:17 -05:00
|
LL | let _ = '\xxy';
2018-10-20 15:36:17 -05:00
| ^
error: unicode escape sequences cannot be used as a byte or in a byte string
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:23:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"\u{a4a4} \xf \u";
2018-10-20 15:36:17 -05:00
| ^^^^^^^^
error: invalid character in numeric character escape:
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:23:27
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"\u{a4a4} \xf \u";
2018-10-20 15:36:17 -05:00
| ^
error: incorrect unicode escape sequence
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:23:28
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"\u{a4a4} \xf \u";
| ^^ incorrect unicode escape sequence
2018-10-20 15:36:17 -05:00
|
= help: format of unicode escape sequences is `\u{...}`
2018-10-20 15:36:17 -05:00
error: invalid character in numeric character escape:
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:28:17
2018-10-20 15:36:17 -05:00
|
LL | let _ = "\xf \u";
2018-10-20 15:36:17 -05:00
| ^
error: incorrect unicode escape sequence
2020-01-08 12:25:42 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:28:18
2018-10-20 15:36:17 -05:00
|
LL | let _ = "\xf \u";
| ^^ incorrect unicode escape sequence
2018-10-20 15:36:17 -05:00
|
= help: format of unicode escape sequences is `\u{...}`
2018-10-20 15:36:17 -05:00
error: incorrect unicode escape sequence
2020-01-08 12:25:42 -06:00
--> $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
2018-10-20 15:36:17 -05:00