rust/tests/ui/lint/unused/unused-macros-malformed-rule.rs

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

16 lines
265 B
Rust
Raw Normal View History

#![deny(unused_macros)]
macro_rules! foo { //~ ERROR: unused macro definition
(v) => {};
() => 0; //~ ERROR: macro rhs must be delimited
}
macro_rules! bar {
(v) => {};
() => 0; //~ ERROR: macro rhs must be delimited
}
fn main() {
bar!(v);
}