blob: ac0268b65c8f273147c2b9989132bc76a9097cd5 [file]
// Braced macro invocations are not allowed as match arms without a semicolon,
// even though they are allowed as statements without a semicolon.
#![feature(no_core)]
#![no_core]
macro_rules! m {
() => { 1 }
}
fn h(c: bool) {
match c {
true => m! {}
false => ()
// { dg-error "exprwithoutblock requires comma after match case expression in match arm \\(if not final case\\)" "" { target *-*-* } .-1 }
};
}
fn main () {}