Skip to content

Commit 761cb57

Browse files
committed
fix test
1 parent c1500f9 commit 761cb57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ui/macros/cfg_select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ cfg_select! {
6868

6969
cfg_select! {
7070
() => {}
71-
//~^ ERROR expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `(`
71+
//~^ ERROR expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found expression
7272
}
7373

7474
cfg_select! {

tests/ui/macros/cfg_select.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `=>`
2727
LL | => {}
2828
| ^^
2929

30-
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `(`
30+
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found expression
3131
--> $DIR/cfg_select.rs:70:5
3232
|
3333
LL | () => {}
34-
| ^
34+
| ^^ expressions are not allowed here
3535

3636
error[E0539]: malformed `cfg_select` macro input
3737
--> $DIR/cfg_select.rs:75:5

0 commit comments

Comments
 (0)