blob: e1138835006b94060d16526c3de539cc93039e89 [file] [log] [blame]
// Expression macros can't expand to a let match guard.
#![feature(if_let_guard)]
macro_rules! m {
($e:expr) => { let Some(x) = $e }
//~^ ERROR expected expression, found `let` statement
}
fn main() {
match () {
() if m!(Some(5)) => {}
_ => {}
}
}