summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/byte-literals.rs
blob: 896dc1a1a5fba5821ef54705062b87d5a6214f03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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 non-ASCII character in byte literal
    b'a  //~ ERROR unterminated byte constant [E0763]
}