2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
|
|
|
//@ compile-flags: -Z span-debug
|
|
|
|
//@ aux-build:nonterminal-recollect-attr.rs
|
2021-01-28 08:47:59 -06:00
|
|
|
|
2021-04-08 16:01:15 -05:00
|
|
|
#![no_std] // Don't load unnecessary hygiene information from std
|
|
|
|
extern crate std;
|
|
|
|
|
2021-01-28 08:47:59 -06:00
|
|
|
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() {}
|