]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/unused-macro-rules-malformed-rule.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[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 }