1 // aux-build:weird-hygiene.rs
3 #![feature(stmt_expr_attributes)]
4 #![feature(proc_macro_hygiene)]
6 extern crate weird_hygiene;
11 macro_rules! call_it {
12 ($outer_ident:ident) => {
21 #[derive(WeirdDerive)]
23 Value = (stringify!($tokens + hidden_ident), 1).1 //~ ERROR cannot find
30 macro_rules! invoke_it {
34 hidden_ident //~ ERROR cannot find
40 // `other` and `invoke_it` are both macro_rules! macros,
41 // so it should be impossible for them to ever see `hidden_ident`,
42 // even if they invoke a proc macro.
43 let hidden_ident = "Hello1";