Merge the two diagnostics.
This commit is contained in:
parent
11fbb57395
commit
752ddd028c
5 changed files with 21 additions and 32 deletions
|
|
@ -9,5 +9,5 @@ extern crate p1;
|
|||
extern crate p2;
|
||||
|
||||
#[rustc_diagnostic_item = "Foo"]
|
||||
pub struct Foo {} //~ ERROR duplicate diagnostic item found
|
||||
pub struct Foo {} //~ ERROR duplicate diagnostic item in crate `duplicate_diagnostic`: `Foo`
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,13 @@ error: duplicate diagnostic item in crate `p2`: `Foo`.
|
|||
|
|
||||
= note: the diagnostic item is first defined in crate `p1`.
|
||||
|
||||
error: duplicate diagnostic item found: `Foo`.
|
||||
error: duplicate diagnostic item in crate `duplicate_diagnostic`: `Foo`.
|
||||
--> $DIR/duplicate-diagnostic.rs:12:1
|
||||
|
|
||||
LL | pub struct Foo {}
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: the diagnostic item is first defined in crate `p2`.
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue