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