27 lines
555 B
Rust
27 lines
555 B
Rust
#![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
|
|
}
|
|
|
|
fn main() {
|
|
used_arm!();
|
|
used_macro_unused_arm!();
|
|
}
|