2024-07-20 12:18:09 +00:00
|
|
|
//@ revisions: e2015 e2024
|
|
|
|
//@[e2015] edition:2015
|
|
|
|
//@[e2024] edition:2024
|
|
|
|
|
2022-04-08 13:04:37 +00:00
|
|
|
#![warn(missing_fragment_specifier)]
|
|
|
|
|
|
|
|
macro_rules! used_arm {
|
|
|
|
( $( any_token $field_rust_type )* ) => {};
|
2024-07-20 12:18:09 +00:00
|
|
|
//[e2015]~^ ERROR missing fragment
|
|
|
|
//[e2015]~| WARN missing fragment
|
|
|
|
//[e2015]~| WARN this was previously accepted
|
|
|
|
//[e2024]~^^^^ ERROR missing fragment
|
|
|
|
//[e2024]~| ERROR missing fragment
|
2022-04-08 13:04:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! used_macro_unused_arm {
|
|
|
|
() => {};
|
|
|
|
( $name ) => {};
|
2024-07-20 12:18:09 +00:00
|
|
|
//[e2015]~^ WARN missing fragment
|
|
|
|
//[e2015]~| WARN this was previously accepted
|
|
|
|
//[e2024]~^^^ ERROR missing fragment
|
2022-04-08 13:04:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! unused_macro {
|
|
|
|
( $name ) => {};
|
2024-07-20 12:18:09 +00:00
|
|
|
//[e2015]~^ WARN missing fragment
|
|
|
|
//[e2015]~| WARN this was previously accepted
|
|
|
|
//[e2024]~^^^ ERROR missing fragment
|
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
|
|
|
}
|