summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/byte-string-literals.rs
blob: b1f11024a7bb6cdcd5bad76e2311a085b3a82b18 (plain)
1
2
3
4
5
6
7
8
9
static FOO: &'static [u8] = b"\f";  //~ ERROR unknown byte escape

pub fn main() {
    b"\f";  //~ ERROR unknown byte escape
    b"\x0Z";  //~ ERROR invalid character in numeric character escape: `Z`
    b"é";  //~ ERROR non-ASCII character in byte constant
    br##"é"##;  //~ ERROR raw byte string must be ASCII
    b"a  //~ ERROR unterminated double quote byte string
}