blob: 7ed9074020e4b8c7bbdd3ba634ad89cf5f5e6218 [file] [log] [blame]
//! Ensure that macros produce an error if fragment specifiers are missing.
macro_rules! used_arm {
( $( any_token $field_rust_type )* ) => {}; //~ ERROR missing fragment
}
macro_rules! used_macro_unused_arm {
() => {};
( $name ) => {}; //~ ERROR missing fragment
}
macro_rules! unused_macro {
( $name ) => {}; //~ ERROR missing fragment
}
fn main() {
used_arm!();
used_macro_unused_arm!();
}