| //@ aux-build:test-macros.rs |
| // gate-test-proc_macro_hygiene |
| #![feature(stmt_expr_attributes)] |
| extern crate test_macros; |
| #![empty_attr] //~ ERROR: inner macro attributes are unstable |
| #![empty_attr] //~ ERROR: inner macro attributes are unstable |
| #[empty_attr = "y"] //~ ERROR: key-value macro attributes are not supported |
| #[empty_attr] //~ ERROR: custom attributes cannot be applied to statements |
| #[empty_attr] //~ ERROR: custom attributes cannot be applied to statements |
| #[empty_attr] //~ ERROR: custom attributes cannot be applied to statements |
| let _x = #[identity_attr] 2; //~ ERROR: custom attributes cannot be applied to expressions |
| let _x = [#[identity_attr] 2]; //~ ERROR: custom attributes cannot be applied to expressions |
| let _x = #[identity_attr] println!(); |
| //~^ ERROR: custom attributes cannot be applied to expressions |
| #![test] //~ ERROR inner macro attributes are unstable |
| //~| WARN this was previously accepted |