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