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