rust/tests/ui/proc-macro/expand-to-unstable.rs
2023-01-11 09:32:08 +00:00

15 lines
209 B
Rust

// aux-build:derive-unstable.rs
#![allow(warnings)]
#[macro_use]
extern crate derive_unstable;
#[derive(Unstable)]
//~^ ERROR: use of unstable library feature
struct A;
fn main() {
unsafe { foo(); }
}