Skip to content

Commit 830d294

Browse files
CI + diagnostics fix
1 parent 534c9e2 commit 830d294

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

tests/ui/eii/multiple-default-impls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ fn a() {}
88

99
#[eii(eii1)]
1010
//~^ ERROR the name `eii1` is defined multiple times
11+
//~| ERROR `#[eii1]` required, but not found
1112
fn main() {}
1213
//~^ ERROR the `main` function cannot be declared in an `extern` block

tests/ui/eii/multiple-default-impls.stderr

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | #[eii(eii1)]
1010
= note: `eii1` must be defined only once in the macro namespace of this module
1111

1212
error: the `main` function cannot be declared in an `extern` block
13-
--> $DIR/multiple-default-impls.rs:11:1
13+
--> $DIR/multiple-default-impls.rs:12:1
1414
|
1515
LL | fn main() {}
1616
| ^^^^^^^^^
@@ -21,6 +21,14 @@ error: `eii1` has more than one default implementation which is not supported
2121
LL | #[eii(eii1)]
2222
| ^^^^^^^^^^^^
2323

24-
error: aborting due to 3 previous errors
24+
error: `#[eii1]` required, but not found
25+
--> $DIR/multiple-default-impls.rs:9:1
26+
|
27+
LL | #[eii(eii1)]
28+
| ^^^^^^^^^^^^ expected because `#[eii1]` was declared here in crate `multiple_default_impls`
29+
|
30+
= help: expected at least one implementation in crate `multiple_default_impls` or any of its dependencies
31+
32+
error: aborting due to 4 previous errors
2533

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

0 commit comments

Comments
 (0)