]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs
rename pat2015 to pat_param
[rust.git] / src / test / ui / feature-gates / feature-gate-edition_macro_pats.rs
index bd8a21ea36acd6212df2ed7b6759a53bc0148378..fdd8626c760b135411e95a4b90fbc9a35519789f 100644 (file)
@@ -1,8 +1,8 @@
 // Feature gate test for `edition_macro_pats` feature.
 
 macro_rules! foo {
-    ($x:pat2018) => {}; //~ERROR `pat2018` and `pat2021` are unstable
-    ($x:pat2021) => {}; //~ERROR `pat2018` and `pat2021` are unstable
+    ($x:pat_param) => {}; // ok
+    ($x:pat2021) => {}; //~ERROR `pat2021` is unstable
 }
 
 fn main() {}