blob: 9f9d11e558d4cc6efdf22d3cc2a41c7a938901a4 [file]
// detect missing else in let statement. (issue #135857)
fn main() {
let foo = Some(1);
let Some(a) = foo{return;};
//~^ HELP you might have meant to write a diverging block
//~| HELP escape `return` to use it as an identifier
//~| ERROR expected identifier, found keyword `return`
}