about summary refs log tree commit diff
path: root/tests/ui/proc-macro/macro_rules_edition_from_pm.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2024-11-20 17:12:56 -0800
committerEric Huss <eric@huss.org>2024-11-20 17:28:47 -0800
commit993e084eb1eb8bc29eae0620bbbb2c3009cec6dd (patch)
treea7707931e8bdf0ce4bb35263aae12427327fe95b /tests/ui/proc-macro/macro_rules_edition_from_pm.rs
parenta1838660c3820c74b987a1630c405ed5c575c70a (diff)
downloadrust-993e084eb1eb8bc29eae0620bbbb2c3009cec6dd.tar.gz
rust-993e084eb1eb8bc29eae0620bbbb2c3009cec6dd.zip
Use edition of `macro_rules` when compiling the macro
Diffstat (limited to 'tests/ui/proc-macro/macro_rules_edition_from_pm.rs')
-rw-r--r--tests/ui/proc-macro/macro_rules_edition_from_pm.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/proc-macro/macro_rules_edition_from_pm.rs b/tests/ui/proc-macro/macro_rules_edition_from_pm.rs
index de614922d1f..3ba80f5177a 100644
--- a/tests/ui/proc-macro/macro_rules_edition_from_pm.rs
+++ b/tests/ui/proc-macro/macro_rules_edition_from_pm.rs
@@ -7,7 +7,7 @@
 //@[edition2021] edition:2021
 //@[edition2024] edition:2024
 //@[edition2024] compile-flags: -Zunstable-options
-//@[edition2024] check-pass
+//@ check-pass
 
 // This checks how the expr fragment specifier works.
 macro_rules_edition_pm::make_edition_macro!{}
@@ -21,8 +21,7 @@ macro_rules_edition_pm::make_nested_edition_macro!{}
 make_inner!{}
 
 const _: () = {
-    assert!(edition_inner!(const {}) == 2024);
-    //[edition2021]~^ ERROR evaluation of constant value failed
+    assert!(edition_inner!(const {}) == 2021);
 };
 
 fn main() {}