| //@ revisions: deny allow | |
| //@[allow] check-pass | |
| #![cfg_attr(deny, deny(invalid_macro_export_arguments))] | |
| #![cfg_attr(allow, allow(invalid_macro_export_arguments))] | |
| #[macro_export(hello, world)] | |
| //[deny]~^ ERROR valid forms for the attribute are | |
| //[deny]~| WARN this was previously accepted | |
| macro_rules! a { | |
| () => () | |
| } | |
| #[cfg_attr(true, macro_export(hello, world))] | |
| //[deny]~^ ERROR valid forms for the attribute are | |
| //[deny]~| WARN this was previously accepted | |
| macro_rules! a2 { | |
| () => () | |
| } | |
| #[macro_export(not_local_inner_macros)] | |
| //[deny]~^ ERROR valid forms for the attribute are | |
| //[deny]~| WARN this was previously accepted | |
| macro_rules! b { | |
| () => () | |
| } | |
| #[macro_export] | |
| macro_rules! c { | |
| () => () | |
| } | |
| #[macro_export(local_inner_macros)] | |
| macro_rules! d { | |
| () => () | |
| } | |
| #[macro_export()] | |
| //[deny]~^ ERROR valid forms for the attribute are | |
| //[deny]~| WARN this was previously accepted | |
| macro_rules! e { | |
| () => () | |
| } | |
| #[macro_export("blah")] | |
| //[deny]~^ ERROR valid forms for the attribute are | |
| //[deny]~| WARN this was previously accepted | |
| macro_rules! f { | |
| () => () | |
| } | |
| fn main() {} |