]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/no-patterns-in-args-macro.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / no-patterns-in-args-macro.rs
index 59cb99453987c5a6bbcdb45cc8f542ead06860b9..b5109f9c286962725d4ae9fe8cc6cae82e1eda9f 100644 (file)
@@ -6,10 +6,10 @@ macro_rules! m {
 
         type A = fn($pat: u8);
 
-        extern {
+        extern "C" {
             fn foreign_fn($pat: u8);
         }
-    }
+    };
 }
 
 mod good_pat {
@@ -20,7 +20,7 @@ mod bad_pat {
     m!((bad, pat));
     //~^ ERROR patterns aren't allowed in function pointer types
     //~| ERROR patterns aren't allowed in foreign function declarations
-    //~| ERROR patterns aren't allowed in methods without bodies
+    //~| ERROR patterns aren't allowed in functions without bodies
 }
 
 fn main() {}