]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/unused-macro-rules-malformed-rule.rs
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / unused-macro-rules-malformed-rule.rs
1 #![deny(unused_macro_rules)]
2
3 macro_rules! foo {
4     (v) => {};
5     (w) => {};
6     () => 0; //~ ERROR: macro rhs must be delimited
7 }
8
9 fn main() {
10     foo!(v);
11 }