2022-04-08 13:04:37 +00:00
|
|
|
#![warn(missing_fragment_specifier)]
|
|
|
|
|
|
|
|
macro_rules! used_arm {
|
|
|
|
( $( any_token $field_rust_type )* ) => {};
|
|
|
|
//~^ ERROR missing fragment
|
|
|
|
//~| WARN missing fragment
|
|
|
|
//~| WARN this was previously accepted
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! used_macro_unused_arm {
|
|
|
|
() => {};
|
|
|
|
( $name ) => {};
|
|
|
|
//~^ WARN missing fragment
|
|
|
|
//~| WARN this was previously accepted
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! unused_macro {
|
|
|
|
( $name ) => {};
|
|
|
|
//~^ WARN missing fragment
|
|
|
|
//~| WARN this was previously accepted
|
2015-11-25 20:01:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2022-04-08 13:04:37 +00:00
|
|
|
used_arm!();
|
|
|
|
used_macro_unused_arm!();
|
2015-11-25 20:01:23 +00:00
|
|
|
}
|