mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
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);
|
|
}
|