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