//@ check-pass //@ compile-flags: -Z span-debug --error-format human //@ aux-build:test-macros.rs #![feature(stmt_expr_attributes)] #![feature(custom_inner_attributes)] #![feature(rustc_attrs)] #![no_std] // Don't load unnecessary hygiene information from std extern crate std; #[macro_use] extern crate test_macros; trait MyTrait {} struct MyStruct; #[print_attr] fn foo>>() {} impl MyTrait for MyStruct<{true}> { #![print_attr] #![rustc_dummy] } fn main() {}