blob: 4885e4a2db7d5e5a0fa6b7dd894dd993716c078f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
//~^^ WARN irrefutable while-let pattern
}
|