]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lexer/lex-bad-char-literals-7.stderr
Auto merge of #100096 - compiler-errors:fn-return-must-be-sized, r=jackh726
[rust.git] / src / test / ui / lexer / lex-bad-char-literals-7.stderr
1 error: empty character literal
2   --> $DIR/lex-bad-char-literals-7.rs:2:20
3    |
4 LL |     let _: char = '';
5    |                    ^ empty character literal
6
7 error: empty unicode escape
8   --> $DIR/lex-bad-char-literals-7.rs:4:20
9    |
10 LL |     let _: char = '\u{}';
11    |                    ^^^^ this escape must have at least 1 hex digit
12
13 error[E0762]: unterminated character literal
14   --> $DIR/lex-bad-char-literals-7.rs:11:13
15    |
16 LL |     let _ = ' hello // here's a comment
17    |             ^^^^^^^^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0762`.