rust/tests/ui/lint/unused/unused-macros-malformed-rule.rs
2023-01-11 09:32:08 +00:00

16 lines
265 B
Rust

#![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);
}