]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/byte-string-literals.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[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 }