]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/proc-macro/weird-hygiene.rs
1 // aux-build:weird-hygiene.rs
3 // FIXME: This should actually error, see PR #73084
5 #![feature(stmt_expr_attributes)]
6 #![feature(proc_macro_hygiene)]
8 extern crate weird_hygiene
;
13 macro_rules
! call_it
{
14 ($outer_ident
:ident
) => {
23 #[derive(WeirdDerive)]
25 Value
= (stringify
!($tokens
+ hidden_ident
), 1).1
32 macro_rules
! invoke_it
{
42 // `other` and `invoke_it` are both macro_rules! macros,
43 // so it should be impossible for them to ever see `hidden_ident`,
44 // even if they invoke a proc macro.
45 let hidden_ident
= "Hello1";