blob: 782037a1fe5d4642483103adac351fb2f27e9807 [file] [log] [blame]
fn main() {
|_: [_; return || {}] | {};
//~^ ERROR return statement outside of function body
[(); return || {}];
//~^ ERROR return statement outside of function body
[(); return |ice| {}];
//~^ ERROR return statement outside of function body
[(); return while let Some(n) = Some(0) {}];
//~^ ERROR return statement outside of function body
//~| ERROR `while` is not allowed in a `const`
}