]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/byte-string-literals.stderr
Auto merge of #107478 - compiler-errors:anon-enum-tys-are-ambiguous, r=estebank
[rust.git] / tests / 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 string literal
24   --> $DIR/byte-string-literals.rs:6:7
25    |
26 LL |     b"é";
27    |       ^ must be ASCII
28    |
29 help: if you meant to use the unicode code point for 'é', use a \xHH escape
30    |
31 LL |     b"\xE9";
32    |       ~~~~
33
34 error: non-ASCII character in raw byte string literal
35   --> $DIR/byte-string-literals.rs:7:10
36    |
37 LL |     br##"é"##;
38    |          ^ must be ASCII
39
40 error[E0766]: unterminated double quote byte string
41   --> $DIR/byte-string-literals.rs:8:6
42    |
43 LL |       b"a
44    |  ______^
45 LL | | }
46    | |__^
47
48 error: aborting due to 6 previous errors
49
50 For more information about this error, try `rustc --explain E0766`.