]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/byte-string-literals.rs
Rollup merge of #57504 - GuillaumeGomez:re-enable-history, r=QuietMisdreavus
[rust.git] / src / test / ui / parser / byte-string-literals.rs
1 // compile-flags: -Z continue-parse-after-error
2
3
4 // ignore-tidy-tab
5
6 static FOO: &'static [u8] = b"\f";  //~ ERROR unknown byte escape
7
8 pub fn main() {
9     b"\f";  //~ ERROR unknown byte escape
10     b"\x0Z";  //~ ERROR invalid character in numeric character escape: Z
11     b"é";  //~ ERROR byte constant must be ASCII
12     b"a  //~ ERROR unterminated double quote byte string
13 }