summary refs log tree commit diff
path: root/src/test/ui/span/macro-span-replacement.rs
blob: c5998c1b40310093acdb71ef717c4957d3e62143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// compile-pass

#![warn(unused)]

macro_rules! m {
    ($a:tt $b:tt) => {
        $b $a; //~ WARN struct is never constructed
    }
}

fn main() {
    m!(S struct);
}