summary refs log tree commit diff
path: root/src/test/ui/proc-macro/nonterminal-recollect-attr.rs
blob: 5d4649b78c270a96c5517cf2d98752c0a1d22000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// check-pass
// aux-build:nonterminal-recollect-attr.rs

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() {}