]> git.proxmox.com Git - rustc.git/blame - tests/ui/proc-macro/signature.rs
bump version to 1.79.0+dfsg1-1~bpo12+pve2
[rustc.git] / tests / ui / proc-macro / signature.rs
CommitLineData
c620b35d
FG
1//@ force-host
2//@ no-prefer-dynamic
a1dfa0c6 3
c30ab7b3 4#![crate_type = "proc-macro"]
9e0c209e 5#![allow(warnings)]
3157f602 6
c30ab7b3 7extern crate proc_macro;
a7813a04 8
c30ab7b3 9#[proc_macro_derive(A)]
5869c6ff 10pub unsafe extern "C" fn foo(a: i32, b: u32) -> u32 {
353b0b11 11 //~^ ERROR: derive proc macro has incorrect signature
9e0c209e 12 loop {}
223e47cc 13}