os-rust/tests/ui/deduplicate-diagnostics.rs

11 lines
437 B
Rust
Raw Normal View History

//@ revisions: duplicate deduplicate
//@[deduplicate] compile-flags: -Z deduplicate-diagnostics=yes
2019-12-29 23:53:35 +03:00
#[derive(Unresolved)] //~ ERROR cannot find derive macro `Unresolved` in this scope
//[duplicate]~| ERROR cannot find derive macro `Unresolved` in this scope
struct S;
#[deny("literal")] //~ ERROR malformed lint attribute input
//[duplicate]~| ERROR malformed lint attribute input
2019-12-29 23:53:35 +03:00
fn main() {}