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

12 lines
161 B
Rust

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