]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/byte-string-literals.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }