Skip to content

Commit

Permalink
Add tests for E0762
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 10, 2020
1 parent 50a42fe commit 7bd87cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/ui/parser/lex-bad-char-literals-4.stderr
@@ -1,8 +1,9 @@
error: unterminated character literal
error[E0762]: unterminated character literal
--> $DIR/lex-bad-char-literals-4.rs:4:5
|
LL | '●
| ^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0762`.
3 changes: 2 additions & 1 deletion src/test/ui/parser/lex-bad-char-literals-7.stderr
Expand Up @@ -10,11 +10,12 @@ 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
| ^^^^^^^^

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0762`.

0 comments on commit 7bd87cf

Please sign in to comment.