]> 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 430a9437cee34e2b717a0a954194ea2dbfbfe0b3..fdd8626c760b135411e95a4b90fbc9a35519789f 100644 (file)
@@ -1,8 +1,8 @@
 // Feature gate test for `edition_macro_pats` feature.
 
 macro_rules! foo {
-    ($x:pat2015) => {}; //~ERROR `pat2015` and `pat2021` are unstable
-    ($x:pat2021) => {}; //~ERROR `pat2015` and `pat2021` are unstable
+    ($x:pat_param) => {}; // ok
+    ($x:pat2021) => {}; //~ERROR `pat2021` is unstable
 }
 
 fn main() {}