1 // Make sure that marks from declarative macros are applied to tokens in nonterminal.
4 // compile-flags: -Z span-debug -Z macro-backtrace -Z unpretty=expanded,hygiene
5 // compile-flags: -Z trim-diagnostic-paths=no
6 // normalize-stdout-test "\d+#" -> "0#"
7 // normalize-stdout-test "expn\d{3,}" -> "expnNNN"
8 // aux-build:test-macros.rs
10 #![feature(decl_macro)]
12 #![no_std] // Don't load unnecessary hygiene information from std
16 extern crate test_macros;
31 struct S; // OK, not a duplicate definition of `S`