1 // aux-build:test-macros.rs
2 // compile-flags: -Z span-debug
4 #![feature(stmt_expr_attributes)]
5 #![feature(proc_macro_hygiene)]
6 #![feature(rustc_attrs)]
8 #![no_std] // Don't load unnecessary hygiene information from std
11 extern crate test_macros;
13 use test_macros::recollect_attr;
16 #[test_macros::recollect_attr]
17 for item in missing_fn() {} //~ ERROR cannot find
19 (#[recollect_attr] #[recollect_attr] ((#[recollect_attr] bad))); //~ ERROR cannot
21 #[test_macros::print_attr]
23 { 1 +1; } // Don't change the weird spacing of the '+'