rust/tests/ui/macros/macro-missing-fragment-deduplication.rs
2024-02-16 20:02:50 +00:00

16 lines
249 B
Rust

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