| // 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` | |
| } |