rust/src/test/ui/proc-macro/keep-expr-tokens.rs
2020-05-24 15:54:48 -04:00

16 lines
347 B
Rust

// aux-build:test-macros.rs
#![feature(stmt_expr_attributes)]
#![feature(proc_macro_hygiene)]
extern crate test_macros;
use test_macros::recollect_attr;
fn main() {
#[test_macros::recollect_attr]
for item in missing_fn() {} //~ ERROR cannot find
(#[recollect_attr] #[recollect_attr] ((#[recollect_attr] bad))); //~ ERROR cannot
}