]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs
Auto merge of #80962 - jhpratt:const_int_fn-stabilization, r=dtolnay
[rust.git] / src / test / ui / feature-gates / feature-gate-edition_macro_pats.rs
1 // Feature gate test for `edition_macro_pats` feature.
2
3 macro_rules! foo {
4     ($x:pat2018) => {}; //~ERROR `pat2018` and `pat2021` are unstable
5     ($x:pat2021) => {}; //~ERROR `pat2018` and `pat2021` are unstable
6 }
7
8 fn main() {}