rust/src/test/ui/span/macro-span-replacement.rs
2018-12-25 21:08:33 -07:00

14 lines
168 B
Rust

// compile-pass
#![warn(unused)]
macro_rules! m {
($a:tt $b:tt) => {
$b $a; //~ WARN struct is never constructed
}
}
fn main() {
m!(S struct);
}