Add tests for E0762

This commit is contained in:
Guillaume Gomez 2020-06-10 11:55:50 +02:00
parent 50a42fe513
commit 7bd87cfac2
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
error: unterminated character literal
error[E0762]: unterminated character literal
--> $DIR/lex-bad-char-literals-4.rs:4:5
|
LL | '●
@ -6,3 +6,4 @@ LL | '●
error: aborting due to previous error
For more information about this error, try `rustc --explain E0762`.

View File

@ -10,7 +10,7 @@ error: empty unicode escape (must have at least 1 hex digit)
LL | let _: char = '\u{}';
| ^^^^
error: unterminated character literal
error[E0762]: unterminated character literal
--> $DIR/lex-bad-char-literals-7.rs:11:13
|
LL | let _ = ' hello // here's a comment
@ -18,3 +18,4 @@ LL | let _ = ' hello // here's a comment
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0762`.