about summary refs log tree commit diff
path: root/src/test/ui/parser/byte-string-literals.rs
blob: d028f28655b8e7ace270330e789956ebbefa34e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// compile-flags: -Z continue-parse-after-error


// ignore-tidy-tab

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 byte constant must be ASCII
    b"a  //~ ERROR unterminated double quote byte string
}