]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/expand-to-unstable-2.rs
Auto merge of #66408 - nnethercote:greedy-process_obligations, r=nmatsakis
[rust.git] / src / test / ui / proc-macro / expand-to-unstable-2.rs
1 // aux-build:derive-unstable-2.rs
2
3 #![feature(register_attr)]
4
5 #![register_attr(rustc_foo)]
6
7 #[macro_use]
8 extern crate derive_unstable_2;
9
10 #[derive(Unstable)]
11 //~^ ERROR attributes starting with `rustc` are reserved for use by the `rustc` compiler
12
13 struct A;
14
15 fn main() {
16     foo();
17 }