summary refs log tree commit diff
path: root/tests/ui/proc-macro/expand-to-unstable.rs
blob: c4eaba6bba2351a779624c6d1a1f46dea3c20058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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(); }
}