]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/macro-expansion-tests.rs
New upstream version 1.17.0+dfsg1
[rustc.git] / src / test / compile-fail / macro-expansion-tests.rs
index a064e69bc6d59f3f661edc468b3b7ceb91a42e8d..ada06b0b3f452cdb3c97859e3ba551d05d4d706b 100644 (file)
@@ -12,14 +12,16 @@ mod macros_cant_escape_fns {
     fn f() {
         macro_rules! m { () => { 3 + 4 } }
     }
-    fn g() -> i32 { m!() } //~ ERROR macro undefined
+    fn g() -> i32 { m!() }
+    //~^ ERROR cannot find macro
 }
 
 mod macros_cant_escape_mods {
     mod f {
         macro_rules! m { () => { 3 + 4 } }
     }
-    fn g() -> i32 { m!() } //~ ERROR macro undefined
+    fn g() -> i32 { m!() }
+    //~^ ERROR cannot find macro
 }
 
 mod macros_can_escape_flattened_mods_test {