summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/ascii-only-character-escape.rs
blob: 725c8ad23515e615e6bf717487cf346806a920c8 (plain)
1
2
3
4
5
6
fn main() {
    let x = "\x80"; //~ ERROR out of range hex escape
    let y = "\xff"; //~ ERROR out of range hex escape
    let z = "\xe2"; //~ ERROR out of range hex escape
    let a = b"\x00e2";  // ok because byte literal
}