about summary refs log tree commit diff
path: root/tests/ui/proc-macro/expand-to-unstable.rs
blob: 37bfeab1fe71ed4daff151ee2ce93e5a87f47da2 (plain)
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(); }
}