rust/tests/ui/macros/missing-bang-in-decl.rs

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

17 lines
275 B
Rust
Raw Normal View History

// run-rustfix
#![allow(unused_macros)]
macro_rules foo {
//~^ ERROR expected `!` after `macro_rules`
() => {};
}
macro_rules bar! {
//~^ ERROR expected `!` after `macro_rules`
//~^^ ERROR macro names aren't followed by a `!`
() => {};
}
fn main() {}