]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/proc-macro/signature.rs
Rollup merge of #107316 - ChrisDenton:snap, r=oli-obk
[rust.git] / tests / ui / proc-macro / signature.rs
index 2302238253e82e172cf2a6ab068a2b5bdbdb3643..11187aa31bd8071c6047c1568bf7ac7373bbc30b 100644 (file)
@@ -8,6 +8,10 @@
 
 #[proc_macro_derive(A)]
 pub unsafe extern "C" fn foo(a: i32, b: u32) -> u32 {
-    //~^ ERROR: expected a `Fn<(proc_macro::TokenStream,)>` closure, found `unsafe extern "C" fn
+    //~^ ERROR: mismatched derive proc macro signature
+    //~| mismatched derive proc macro signature
+    //~| mismatched derive proc macro signature
+    //~| proc macro functions may not be `extern
+    //~| proc macro functions may not be `unsafe
     loop {}
 }