summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/nonterminal-recollect-attr.rs
blob: 79c4ad4cd2a249b2ebefe61a02137f964e5420c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// check-pass
// compile-flags: -Z span-debug
// aux-build:nonterminal-recollect-attr.rs

#![no_std] // Don't load unnecessary hygiene information from std
extern crate std;

extern crate nonterminal_recollect_attr;
use nonterminal_recollect_attr::*;

macro_rules! my_macro {
    ($v:ident) => {
        #[first_attr]
        $v struct Foo {
            field: u8
        }
    }
}

my_macro!(pub);
fn main() {}