rust/src/test/ui/parser/ascii-only-character-escape.rs
2020-01-08 21:48:04 +03:00

7 lines
206 B
Rust

fn main() {
let x = "\x80"; //~ ERROR may only be used
let y = "\xff"; //~ ERROR may only be used
let z = "\xe2"; //~ ERROR may only be used
let a = b"\x00e2"; // ok because byte literal
}