summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/expand-to-unstable-2.rs
blob: 4160e5418b78a79bb488589aa2c9de7097baa437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// aux-build:derive-unstable-2.rs

#![feature(register_attr)]

#![register_attr(rustc_foo)]

#[macro_use]
extern crate derive_unstable_2;

#[derive(Unstable)]
//~^ ERROR attributes starting with `rustc` are reserved for use by the `rustc` compiler

struct A;

fn main() {
    foo();
}