Skip to content

Commit d33ee3f

Browse files
committed
Fix tests
1 parent ec8db2a commit d33ee3f

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This test needs to the last one appearing in this file as it kills the parser
22
static c: char =
33
'●●' //~ ERROR: character literal may only contain one codepoint
4-
//~| ERROR: mismatched types
54
;
65

76
fn main() {}

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,5 @@ help: if you meant to write a `str` literal, use double quotes
88
LL | "●●" //~ ERROR: character literal may only contain one codepoint
99
| ^^^^
1010

11-
error[E0308]: mismatched types
12-
--> $DIR/lex-bad-char-literals-3.rs:3:5
13-
|
14-
LL | '●●' //~ ERROR: character literal may only contain one codepoint
15-
| ^^^^ expected char, found reference
16-
|
17-
= note: expected type `char`
18-
found type `&'static str`
19-
20-
error: aborting due to 2 previous errors
11+
error: aborting due to previous error
2112

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

src/test/ui/parser/lex-bad-char-literals-5.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// This test needs to the last one appearing in this file as it kills the parser
33
static c: char =
44
'\x10\x10' //~ ERROR: character literal may only contain one codepoint
5-
//~| ERROR: mismatched types
65
;
76

87
fn main() {}

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,5 @@ help: if you meant to write a `str` literal, use double quotes
88
LL | "/x10/x10" //~ ERROR: character literal may only contain one codepoint
99
| ^^^^^^^^^^
1010

11-
error[E0308]: mismatched types
12-
--> $DIR/lex-bad-char-literals-5.rs:4:5
13-
|
14-
LL | '/x10/x10' //~ ERROR: character literal may only contain one codepoint
15-
| ^^^^^^^^^^ expected char, found reference
16-
|
17-
= note: expected type `char`
18-
found type `&'static str`
19-
20-
error: aborting due to 2 previous errors
11+
error: aborting due to previous error
2112

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

0 commit comments

Comments
 (0)