rust/src/test/ui/parser/ascii-only-character-escape.stderr

21 lines
630 B
Plaintext
Raw Normal View History

error: this form of character escape may only be used with characters in the range [\x00-\x7f]
2020-01-08 12:25:42 -06:00
--> $DIR/ascii-only-character-escape.rs:2:14
2018-10-20 15:36:17 -05:00
|
LL | let x = "\x80";
| ^^^^
2018-10-20 15:36:17 -05:00
error: this form of character escape may only be used with characters in the range [\x00-\x7f]
2020-01-08 12:25:42 -06:00
--> $DIR/ascii-only-character-escape.rs:3:14
2018-10-20 15:36:17 -05:00
|
LL | let y = "\xff";
| ^^^^
2018-10-20 15:36:17 -05:00
error: this form of character escape may only be used with characters in the range [\x00-\x7f]
2020-01-08 12:25:42 -06:00
--> $DIR/ascii-only-character-escape.rs:4:14
2018-10-20 15:36:17 -05:00
|
LL | let z = "\xe2";
| ^^^^
2018-10-20 15:36:17 -05:00
error: aborting due to 3 previous errors