]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/lex-bad-char-literals-1.rs
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
[rust.git] / src / test / ui / parser / lex-bad-char-literals-1.rs
1 // compile-flags: -Z continue-parse-after-error
2 static c3: char =
3     '\x1' //~ ERROR: numeric character escape is too short
4 ;
5
6 static s3: &'static str =
7     "\x1" //~ ERROR: numeric character escape is too short
8 ;
9
10 static c: char =
11     '\●' //~ ERROR: unknown character escape
12 ;
13
14 static s: &'static str =
15     "\●" //~ ERROR: unknown character escape
16 ;
17
18 fn main() {}