blob: d4c35fad9b0f0fa0b0ba8e73e4be8b47653356d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![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);
}
|