2018-06-23 11:52:45 +01:00
|
|
|
fn main() {
|
2019-08-21 15:13:13 +03:00
|
|
|
|_: [_; continue]| {}; //~ ERROR: `continue` outside of a loop
|
2018-06-23 13:12:15 +01:00
|
|
|
|
2019-08-21 15:13:13 +03:00
|
|
|
while |_: [_; continue]| {} {} //~ ERROR: `continue` outside of a loop
|
2018-06-23 13:21:09 +01:00
|
|
|
|
2019-08-21 15:13:13 +03:00
|
|
|
while |_: [_; break]| {} {} //~ ERROR: `break` outside of a loop
|
2018-06-23 11:52:45 +01:00
|
|
|
}
|