]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-5005/minimum_example.rs
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / target / issue-5005 / minimum_example.rs
1 #![feature(more_qualified_paths)]
2 macro_rules! show {
3     ($ty:ty, $ex:expr) => {
4         match $ex {
5             <$ty>::A(_val) => println!("got a"), // formatting should not remove <$ty>::
6             <$ty>::B => println!("got b"),
7         }
8     };
9 }