]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/multibyte-escapes.stderr
6e26bc1f01cef5abfda10bbf8d9d5990af2d9ae8
[rust.git] / src / test / ui / suggestions / multibyte-escapes.stderr
1 error: non-ASCII character in byte constant
2   --> $DIR/multibyte-escapes.rs:4:7
3    |
4 LL |     b'µ';
5    |       ^ byte constant must be ASCII
6    |
7 help: if you meant to use the unicode code point for 'µ', use a \xHH escape
8    |
9 LL |     b'\xB5';
10    |       ~~~~
11
12 error: non-ASCII character in byte constant
13   --> $DIR/multibyte-escapes.rs:9:7
14    |
15 LL |     b'字';
16    |       ^^
17    |       |
18    |       byte constant must be ASCII
19    |       this multibyte character does not fit into a single byte
20
21 error: non-ASCII character in byte constant
22   --> $DIR/multibyte-escapes.rs:14:7
23    |
24 LL |     b"字";
25    |       ^^ byte constant must be ASCII
26    |
27 help: if you meant to use the UTF-8 encoding of '字', use \xHH escapes
28    |
29 LL |     b"\xE5\xAD\x97";
30    |       ~~~~~~~~~~~~
31
32 error: aborting due to 3 previous errors
33