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


// ignore-tidy-tab

static FOO: 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 escaped
    b''';  //~ ERROR byte constant must be escaped
    b'é';  //~ ERROR byte constant must be ASCII
    b'a  //~ ERROR unterminated byte constant
}