2018-06-22 15:35:52 -07:00
|
|
|
fn main() {
|
2018-07-01 17:40:36 +01:00
|
|
|
|_: [_; return || {}] | {};
|
2018-06-22 15:35:52 -07:00
|
|
|
//~^ ERROR return statement outside of function body
|
|
|
|
|
|
|
|
[(); return || {}];
|
|
|
|
//~^ ERROR return statement outside of function body
|
2018-07-01 17:23:48 +01:00
|
|
|
|
|
|
|
[(); return |ice| {}];
|
|
|
|
//~^ ERROR return statement outside of function body
|
2018-07-01 17:40:36 +01:00
|
|
|
|
|
|
|
[(); return while let Some(n) = Some(0) {}];
|
|
|
|
//~^ ERROR return statement outside of function body
|
2018-07-01 17:23:48 +01:00
|
|
|
}
|