summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-5005/minimum_example.rs
blob: 11cc645fa53561522fbe6e67bb68cdb80db5ea2b (plain)
1
2
3
4
5
6
7
8
9
#![feature(more_qualified_paths)]
macro_rules! show {
    ($ty:ty, $ex:expr) => {
        match $ex {
            <$ty>::A(_val) => println!("got a"), // formatting should not remove <$ty>::
            <$ty>::B => println!("got b"),
        }
    };
}