12 lines
161 B
Rust
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);
|
|
}
|