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

131 lines
3.6 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
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:4:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"/u{a66e}";
| ^^^^^^^^
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
|
LL | let _ = b'/u{a66e}';
| ^^^^^^^^
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
|
LL | let _ = b'/u';
| ^^
|
help: format of unicode escape sequences is `/u{…}`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:10:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'/u';
| ^^
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:10:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'/u';
| ^^
error: numeric character escape is too short
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:14:17
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'/x5';
| ^
error: invalid character in numeric character escape: x
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:17:17
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'/xxy';
| ^
error: invalid character in numeric character escape: y
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:17:18
2018-10-20 15:36:17 -05:00
|
LL | let _ = b'/xxy';
| ^
error: numeric character escape is too short
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:21:16
2018-10-20 15:36:17 -05:00
|
LL | let _ = '/x5';
| ^
error: invalid character in numeric character escape: x
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:24:16
2018-10-20 15:36:17 -05:00
|
LL | let _ = '/xxy';
| ^
error: invalid character in numeric character escape: y
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:24:17
2018-10-20 15:36:17 -05:00
|
LL | let _ = '/xxy';
| ^
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:28:15
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"/u{a4a4} /xf /u";
| ^^^^^^^^
error: invalid character in numeric character escape:
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:28:27
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"/u{a4a4} /xf /u";
| ^
error: incorrect unicode escape sequence
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:28:28
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"/u{a4a4} /xf /u";
| ^^
|
help: format of unicode escape sequences is `/u{…}`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:28:28
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"/u{a4a4} /xf /u";
| ^^
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:28:28
2018-10-20 15:36:17 -05:00
|
LL | let _ = b"/u{a4a4} /xf /u";
| ^^
error: invalid character in numeric character escape:
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:34:17
2018-10-20 15:36:17 -05:00
|
LL | let _ = "/xf /u";
| ^
error: this form of character escape may only be used with characters in the range [/x00-/x7f]
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:34:16
2018-10-20 15:36:17 -05:00
|
LL | let _ = "/xf /u";
| ^^
error: incorrect unicode escape sequence
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:34:18
2018-10-20 15:36:17 -05:00
|
LL | let _ = "/xf /u";
| ^^
|
help: format of unicode escape sequences is `/u{…}`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-23620-invalid-escapes.rs:34:18
2018-10-20 15:36:17 -05:00
|
LL | let _ = "/xf /u";
| ^^
error: incorrect unicode escape sequence
--> $DIR/issue-23620-invalid-escapes.rs:39:14
|
LL | let _ = "/u8f";
| ^^--
| |
| help: format of unicode escape sequences uses braces: `/u{8f}`
error: aborting due to 18 previous errors
2018-10-20 15:36:17 -05:00