2 // compile-flags: -Z span-debug --error-format human
3 // aux-build:test-macros.rs
5 #![feature(custom_inner_attributes)]
6 #![feature(proc_macro_hygiene)]
7 #![feature(stmt_expr_attributes)]
9 #![no_std] // Don't load unnecessary hygiene information from std
13 extern crate test_macros
;
15 #[print_target_and_args(first)]
16 #[print_target_and_args(second)]
18 #![print_target_and_args(third)]
19 #![print_target_and_args(fourth)]
27 (#![print_target_and_args(fifth)] 1, 2);
29 [#![print_target_and_args(sixth)] 1 , 2];
30 [#![print_target_and_args(seventh)] true ; 5];
34 #![print_target_and_args(eighth)]
38 MyStruct { #![print_target_and_args(ninth)] field: true }
;
43 #![print_target_and_args_consume(tenth)]