Skip to content

Commit 7bd87cf

Browse files
Add tests for E0762
1 parent 50a42fe commit 7bd87cf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
error: unterminated character literal
1+
error[E0762]: unterminated character literal
22
--> $DIR/lex-bad-char-literals-4.rs:4:5
33
|
44
LL | '●
55
| ^^^^
66

77
error: aborting due to previous error
88

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

src/test/ui/parser/lex-bad-char-literals-7.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ error: empty unicode escape (must have at least 1 hex digit)
1010
LL | let _: char = '\u{}';
1111
| ^^^^
1212

13-
error: unterminated character literal
13+
error[E0762]: unterminated character literal
1414
--> $DIR/lex-bad-char-literals-7.rs:11:13
1515
|
1616
LL | let _ = ' hello // here's a comment
1717
| ^^^^^^^^
1818

1919
error: aborting due to 3 previous errors
2020

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

0 commit comments

Comments
 (0)