]> git.proxmox.com Git - rustc.git/blame - src/test/ui/proc-macro/expand-to-unstable-2.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / proc-macro / expand-to-unstable-2.rs
CommitLineData
0731742a
XL
1// aux-build:derive-unstable-2.rs
2
60c5eb7d
XL
3#![feature(register_attr)]
4
5#![register_attr(rustc_foo)]
0731742a
XL
6
7#[macro_use]
8extern crate derive_unstable_2;
9
10#[derive(Unstable)]
416331ca
XL
11//~^ ERROR attributes starting with `rustc` are reserved for use by the `rustc` compiler
12
0731742a
XL
13struct A;
14
15fn main() {
16 foo();
17}