Skip to content

Commit 6bd6a20

Browse files
committed
Add a test
1 parent 1370bbc commit 6bd6a20

3 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: cannot find derive macro `Unresolved` in this scope
2+
--> $DIR/deduplicate-diagnostics.rs:4:10
3+
|
4+
LL | #[derive(Unresolved)]
5+
| ^^^^^^^^^^
6+
7+
error: aborting due to previous error
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: cannot find derive macro `Unresolved` in this scope
2+
--> $DIR/deduplicate-diagnostics.rs:4:10
3+
|
4+
LL | #[derive(Unresolved)]
5+
| ^^^^^^^^^^
6+
7+
error: cannot find derive macro `Unresolved` in this scope
8+
--> $DIR/deduplicate-diagnostics.rs:4:10
9+
|
10+
LL | #[derive(Unresolved)]
11+
| ^^^^^^^^^^
12+
13+
error: aborting due to 2 previous errors
14+
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// revisions: duplicate deduplicate
2+
//[duplicate] compile-flags: -Z deduplicate-diagnostics=no
3+
4+
#[derive(Unresolved)] //~ ERROR cannot find derive macro `Unresolved` in this scope
5+
//[duplicate]~| ERROR cannot find derive macro `Unresolved` in this scope
6+
struct S;
7+
8+
fn main() {}

0 commit comments

Comments
 (0)