rust/tests/ui/macros/macro-missing-fragment-deduplication.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
249 B
Rust
Raw Normal View History

//@ 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!();
}