summaryrefslogtreecommitdiffstats
path: root/tests/ui/lexer/lex-bad-char-literals-1.rs
blob: e7951cfd2d20cc2314ef754f690f4342e1aad4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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() {}