]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[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() {}