about summary refs log tree commit diff
path: root/tests/ui/diagnostic-flags/deduplicate-diagnostics.rs
blob: 48705266e35848a7c5b74d0426e9db292269b7f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Test that `-Z deduplicate-diagnostics` flag properly deduplicates diagnostic messages.

//@ revisions: duplicate deduplicate
//@[deduplicate] compile-flags: -Z deduplicate-diagnostics=yes

#[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
                   //[duplicate]~| ERROR malformed lint attribute input
fn main() {}