mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
16 lines
265 B
Rust
16 lines
265 B
Rust
#![deny(unused_macros)]
|
|
|
|
macro_rules! foo { //~ ERROR: unused macro definition
|
|
(v) => {};
|
|
() => 0; //~ ERROR: macro rhs must be delimited
|
|
}
|
|
|
|
macro_rules! bar {
|
|
(v) => {};
|
|
() => 0; //~ ERROR: macro rhs must be delimited
|
|
}
|
|
|
|
fn main() {
|
|
bar!(v);
|
|
}
|