2023-04-27 18:33:39 +00:00
|
|
|
//@ 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)]
|
2025-09-21 10:21:11 -04:00
|
|
|
//[deny]~^ ERROR valid forms for the attribute are
|
|
|
|
|
//[deny]~| WARN this was previously accepted
|
2023-02-11 00:53:19 +01:00
|
|
|
macro_rules! a {
|
|
|
|
|
() => ()
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 18:33:39 +00:00
|
|
|
#[macro_export(not_local_inner_macros)]
|
2025-09-21 10:21:11 -04:00
|
|
|
//[deny]~^ ERROR valid forms for the attribute are
|
|
|
|
|
//[deny]~| WARN this was previously accepted
|
2023-02-11 00:53:19 +01:00
|
|
|
macro_rules! b {
|
|
|
|
|
() => ()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
|
macro_rules! c {
|
|
|
|
|
() => ()
|
|
|
|
|
}
|
2025-09-21 10:21:11 -04:00
|
|
|
|
2023-02-11 00:53:19 +01:00
|
|
|
#[macro_export(local_inner_macros)]
|
|
|
|
|
macro_rules! d {
|
|
|
|
|
() => ()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[macro_export()]
|
2025-09-21 10:21:11 -04:00
|
|
|
//[deny]~^ ERROR valid forms for the attribute are
|
|
|
|
|
//[deny]~| WARN this was previously accepted
|
2023-02-11 00:53:19 +01:00
|
|
|
macro_rules! e {
|
|
|
|
|
() => ()
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-10 13:47:35 +10:00
|
|
|
#[macro_export("blah")]
|
2025-09-21 10:21:11 -04:00
|
|
|
//[deny]~^ ERROR valid forms for the attribute are
|
|
|
|
|
//[deny]~| WARN this was previously accepted
|
2025-04-10 13:47:35 +10:00
|
|
|
macro_rules! f {
|
|
|
|
|
() => ()
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-11 00:53:19 +01:00
|
|
|
fn main() {}
|