]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs
Rollup merge of #73945 - est31:unused_externs, r=Mark-Simulacrum
[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:pat2015) => {}; //~ERROR `pat2015` and `pat2021` are unstable
5     ($x:pat2021) => {}; //~ERROR `pat2015` and `pat2021` are unstable
6 }
7
8 fn main() {}