mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
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!();
|
|
}
|