1 // aux-build:test-macros.rs
3 #![feature(stmt_expr_attributes)]
6 extern crate test_macros;
8 // NB. these errors aren't the best errors right now, but they're definitely
9 // intended to be errors. Somehow using a custom attribute in these positions
10 // should either require a feature gate or not be allowed on stable.
12 fn _test6<#[empty_attr] T>() {}
13 //~^ ERROR: expected non-macro attribute, found attribute macro
17 #[empty_attr] //~ ERROR: expected non-macro attribute, found attribute macro