rust/src/test/ui/proc-macro/expand-to-unstable-2.rs

18 lines
285 B
Rust

// 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();
}