about summary refs log tree commit diff
path: root/tests/ui/reserved/reserved-attr-on-macro.rs
blob: 5c4657e0ec2e1311e1e7c896dacbbc6ea73b3e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[rustc_attribute_should_be_reserved]
//~^ ERROR cannot find attribute `rustc_attribute_should_be_reserved` in this scope
//~| ERROR attributes starting with `rustc` are reserved for use by the `rustc` compiler

macro_rules! foo {
    () => (());
}

fn main() {
    foo!();
}