blob: 0dc588d75c654dfc7338d77ef605ea2140514935 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
}
|