]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/keep-expr-tokens.rs
normalize stderr
[rust.git] / src / test / ui / proc-macro / keep-expr-tokens.rs
1 // aux-build:test-macros.rs
2 // compile-flags: -Z span-debug
3
4 #![feature(stmt_expr_attributes)]
5 #![feature(proc_macro_hygiene)]
6 #![feature(rustc_attrs)]
7
8 #![no_std] // Don't load unnecessary hygiene information from std
9 extern crate std;
10
11 extern crate test_macros;
12
13 use test_macros::recollect_attr;
14
15 fn main() {
16     #[test_macros::recollect_attr]
17     for item in missing_fn() {} //~ ERROR cannot find
18
19     (#[recollect_attr] #[recollect_attr] ((#[recollect_attr] bad))); //~ ERROR cannot
20
21     #[test_macros::print_attr]
22     #[rustc_dummy]
23     { 1 +1; } // Don't change the weird spacing of the '+'
24 }