mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Add a test
This commit is contained in:
parent
1370bbcf0d
commit
6bd6a20475
8
src/test/ui/deduplicate-diagnostics.deduplicate.stderr
Normal file
8
src/test/ui/deduplicate-diagnostics.deduplicate.stderr
Normal file
@ -0,0 +1,8 @@
|
||||
error: cannot find derive macro `Unresolved` in this scope
|
||||
--> $DIR/deduplicate-diagnostics.rs:4:10
|
||||
|
|
||||
LL | #[derive(Unresolved)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
14
src/test/ui/deduplicate-diagnostics.duplicate.stderr
Normal file
14
src/test/ui/deduplicate-diagnostics.duplicate.stderr
Normal file
@ -0,0 +1,14 @@
|
||||
error: cannot find derive macro `Unresolved` in this scope
|
||||
--> $DIR/deduplicate-diagnostics.rs:4:10
|
||||
|
|
||||
LL | #[derive(Unresolved)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: cannot find derive macro `Unresolved` in this scope
|
||||
--> $DIR/deduplicate-diagnostics.rs:4:10
|
||||
|
|
||||
LL | #[derive(Unresolved)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
8
src/test/ui/deduplicate-diagnostics.rs
Normal file
8
src/test/ui/deduplicate-diagnostics.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// revisions: duplicate deduplicate
|
||||
//[duplicate] compile-flags: -Z deduplicate-diagnostics=no
|
||||
|
||||
#[derive(Unresolved)] //~ ERROR cannot find derive macro `Unresolved` in this scope
|
||||
//[duplicate]~| ERROR cannot find derive macro `Unresolved` in this scope
|
||||
struct S;
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user