rust/tests/ui/lexer/lex-bad-char-literals-1.rs
2023-01-11 09:32:08 +00:00

18 lines
323 B
Rust

static c3: char =
'\x1' //~ ERROR: numeric character escape is too short
;
static s3: &'static str =
"\x1" //~ ERROR: numeric character escape is too short
;
static c: char =
'\' //~ ERROR: unknown character escape
;
static s: &'static str =
"\" //~ ERROR: unknown character escape
;
fn main() {}