blob: 4e57618bf5e77cf3c242e12c242c9e675871de75 [file] [log] [blame]
// Tests that we generate nice error messages
// when an expression is unreachble due to control
// flow inside of a macro expansion.
#![deny(unreachable_code)]
macro_rules! early_return {
() => {
return ()
}
}
fn main() {
return early_return!();
//~^ ERROR unreachable expression
}