]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/byte-string-literals.stderr
Auto merge of #81462 - osa1:issue75158, r=Mark-Simulacrum
[rust.git] / src / test / ui / parser / byte-string-literals.stderr
1 error: unknown byte escape: `f`
2   --> $DIR/byte-string-literals.rs:1:32
3    |
4 LL | static FOO: &'static [u8] = b"\f";
5    |                                ^ unknown byte escape
6    |
7    = help: for more information, visit <https://static.rust-lang.org/doc/master/reference.html#literals>
8
9 error: unknown byte escape: `f`
10   --> $DIR/byte-string-literals.rs:4:8
11    |
12 LL |     b"\f";
13    |        ^ unknown byte escape
14    |
15    = help: for more information, visit <https://static.rust-lang.org/doc/master/reference.html#literals>
16
17 error: invalid character in numeric character escape: `Z`
18   --> $DIR/byte-string-literals.rs:5:10
19    |
20 LL |     b"\x0Z";
21    |          ^ invalid character in numeric character escape
22
23 error: non-ASCII character in byte constant
24   --> $DIR/byte-string-literals.rs:6:7
25    |
26 LL |     b"é";
27    |       ^
28    |       |
29    |       byte constant must be ASCII
30    |       help: use a \xHH escape for a non-ASCII byte: `\xE9`
31
32 error: raw byte string must be ASCII
33   --> $DIR/byte-string-literals.rs:7:10
34    |
35 LL |     br##"é"##;
36    |          ^ must be ASCII
37
38 error[E0766]: unterminated double quote byte string
39   --> $DIR/byte-string-literals.rs:8:6
40    |
41 LL |       b"a
42    |  ______^
43 LL | | }
44    | |__^
45
46 error: aborting due to 6 previous errors
47
48 For more information about this error, try `rustc --explain E0766`.