File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff 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
1112fn main ( ) { }
1213//~^ ERROR the `main` function cannot be declared in an `extern` block
Original file line number Diff line number Diff 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
1212error: 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 |
1515LL | fn main() {}
1616 | ^^^^^^^^^
@@ -21,6 +21,14 @@ error: `eii1` has more than one default implementation which is not supported
2121LL | #[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
2634For more information about this error, try `rustc --explain E0428`.
You can’t perform that action at this time.
0 commit comments