2018-10-20 15:36:17 -05:00
|
|
|
error: unicode escape sequences cannot be used as a byte or in a byte string
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:4:15
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:7:15
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = b'\u{a66e}';
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: incorrect unicode escape sequence
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:10:15
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = b'\u';
|
2019-03-20 13:45:25 -05:00
|
|
|
| ^^ incorrect unicode escape sequence
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -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
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:13:15
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = b'\x5';
|
2019-04-25 03:48:25 -05:00
|
|
|
| ^^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: invalid character in numeric character escape: x
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:16:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = b'\xxy';
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: numeric character escape is too short
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:19:14
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = '\x5';
|
2019-04-25 03:48:25 -05:00
|
|
|
| ^^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: invalid character in numeric character escape: x
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:22:16
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -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
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:25:15
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = b"\u{a4a4} \xf \u";
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid character in numeric character escape:
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:25:27
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = b"\u{a4a4} \xf \u";
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: incorrect unicode escape sequence
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:25:28
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = b"\u{a4a4} \xf \u";
|
2019-03-20 13:45:25 -05:00
|
|
|
| ^^ incorrect unicode escape sequence
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -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:
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:30:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = "\xf \u";
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: incorrect unicode escape sequence
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:30:18
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = "\xf \u";
|
2019-03-20 13:45:25 -05:00
|
|
|
| ^^ incorrect unicode escape sequence
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
= help: format of unicode escape sequences is `\u{...}`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2018-12-27 13:21:47 -06:00
|
|
|
error: incorrect unicode escape sequence
|
2019-04-25 03:48:25 -05:00
|
|
|
--> $DIR/issue-23620-invalid-escapes.rs:34:14
|
2018-12-27 13:21:47 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let _ = "\u8f";
|
2018-12-27 13:21:47 -06:00
|
|
|
| ^^--
|
2019-04-25 03:48:25 -05:00
|
|
|
| |
|
|
|
|
| help: format of unicode escape sequences uses braces: `\u{8f}`
|
2018-12-27 13:21:47 -06:00
|
|
|
|
2019-04-25 03:48:25 -05:00
|
|
|
error: aborting due to 13 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|