summaryrefslogtreecommitdiffstats
path: root/src/test/ui/reserved/reserved-attr-on-macro.rs
blob: 2630db0d09785fa24ad5653a05d9081d528943fe (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!(); //~ ERROR cannot determine resolution for the macro `foo`
}