2 // compile-flags: -Z span-debug
3 // aux-build:test-macros.rs
5 #![no_std] // Don't load unnecessary hygiene information from std
9 extern crate test_macros;
11 macro_rules! pass_nonterminal {
13 #[print_attr_args(a, $line, b)]
18 // `line!()` is not expanded before it's passed to the proc macro.
19 pass_nonterminal!(line!());
21 // Test case from #43860.
24 macro_rules! use_contract {
25 ($name: ident, $path: expr) => {
27 #[empty_helper(path = $path)] // OK
28 pub struct $name<T, C> {
35 use_contract!(ContractName, file!());