rust/src/test/ui/span/macro-span-replacement.rs
Val Markovic 2155adbc3a Moving more build-pass tests to check-pass
One or two tests became build-pass without the FIXME because they really
needed build-pass (were failing without it).

Helps with #62277
2020-04-23 20:21:38 -07:00

13 lines
166 B
Rust

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