summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/macro-missing-fragment-deduplication.rs
blob: c1e6ba7464772144eb9e43aa61772619e4a5b429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// compile-flags: -Zdeduplicate-diagnostics=yes

macro_rules! m {
    ($name) => {}
    //~^ ERROR missing fragment
    //~| ERROR missing fragment
    //~| WARN this was previously accepted
}

fn main() {
    m!();
    m!();
    m!();
    m!();
}