blob: 3c5c93ea3b3e462af717e434265d0428fbe5ad50 [file] [log] [blame]
#![crate_type = "lib"]
macro_rules! a { {} => }
//~^ ERROR: macro definition ended unexpectedly
macro_rules! b { 0 => }
//~^ ERROR: macro definition ended unexpectedly
//~| ERROR: invalid macro matcher
macro_rules! c { x => }
//~^ ERROR: macro definition ended unexpectedly
//~| ERROR: invalid macro matcher
macro_rules! d { _ => }
//~^ ERROR: macro definition ended unexpectedly
//~| ERROR: invalid macro matcher
macro_rules! e { {} }
//~^ ERROR: expected `=>`, found end of macro arguments
macro_rules! f {}
//~^ ERROR: macros must contain at least one rule