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