2 // aux-build:builtin-attrs.rs
3 #![feature(decl_macro)] //~ ERROR `feature` is ambiguous
5 extern crate builtin_attrs;
7 use builtin_attrs::{bench, test};
9 #[repr(C)] //~ ERROR `repr` is ambiguous
11 #[cfg_attr(all(), repr(C))] //~ ERROR `repr` is ambiguous
14 #[test] // OK, shadowed
17 #[bench] // OK, shadowed
20 fn non_macro_expanded_location<#[repr(C)] T>() {
21 //~^ ERROR `repr` is ambiguous
22 //~| ERROR attribute should be applied to a struct, enum, or union
25 //~^ ERROR `repr` is ambiguous
26 //~| ERROR attribute should be applied to a struct, enum, or union
34 NonExistent; //~ ERROR cannot find value `NonExistent` in this scope
38 #[allow(unused)] //~ ERROR `allow` is ambiguous (built-in attribute vs any other name)
39 fn builtin_renamed() {}