2022-11-02 23:17:37 -05:00
|
|
|
error: non-ASCII character in byte literal
|
2021-07-31 07:37:01 -05:00
|
|
|
--> $DIR/multibyte-escapes.rs:4:7
|
|
|
|
|
|
|
|
|
LL | b'µ';
|
2022-11-02 23:17:37 -05:00
|
|
|
| ^ must be ASCII
|
2021-07-31 07:37:01 -05:00
|
|
|
|
|
|
|
|
help: if you meant to use the unicode code point for 'µ', use a \xHH escape
|
|
|
|
|
|
|
|
|
LL | b'\xB5';
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~
|
2021-07-31 07:37:01 -05:00
|
|
|
|
2022-11-02 23:17:37 -05:00
|
|
|
error: non-ASCII character in byte literal
|
2021-07-31 07:37:01 -05:00
|
|
|
--> $DIR/multibyte-escapes.rs:9:7
|
|
|
|
|
|
|
|
|
LL | b'字';
|
|
|
|
| ^^
|
|
|
|
| |
|
2022-11-02 23:17:37 -05:00
|
|
|
| must be ASCII
|
2021-07-31 07:37:01 -05:00
|
|
|
| this multibyte character does not fit into a single byte
|
|
|
|
|
2022-11-02 23:17:37 -05:00
|
|
|
error: non-ASCII character in byte string literal
|
2021-07-31 07:37:01 -05:00
|
|
|
--> $DIR/multibyte-escapes.rs:14:7
|
|
|
|
|
|
|
|
|
LL | b"字";
|
2022-11-02 23:17:37 -05:00
|
|
|
| ^^ must be ASCII
|
2021-07-31 07:37:01 -05:00
|
|
|
|
|
|
|
|
help: if you meant to use the UTF-8 encoding of '字', use \xHH escapes
|
|
|
|
|
|
|
|
|
LL | b"\xE5\xAD\x97";
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~~~~
|
2021-07-31 07:37:01 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|