]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/byte-string-literals.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / parser / byte-string-literals.rs
1 static FOO: &'static [u8] = b"\f";  //~ ERROR unknown byte escape
2
3 pub fn main() {
4     b"\f";  //~ ERROR unknown byte escape
5     b"\x0Z";  //~ ERROR invalid character in numeric character escape: `Z`
6     b"é";  //~ ERROR non-ASCII character in byte constant
7     br##"é"##;  //~ ERROR raw byte string must be ASCII
8     b"a  //~ ERROR unterminated double quote byte string
9 }