1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//@ proc-macro: derive-unstable.rs //@ ignore-backends: gcc #![allow(warnings)] #[macro_use] extern crate derive_unstable; #[derive(Unstable)] //~^ ERROR: use of unstable library feature struct A; fn main() { unsafe { foo(); } }