2018-07-01 17:24:07 +01:00
|
|
|
fn main() {
|
|
|
|
loop {
|
2019-08-21 15:13:13 +03:00
|
|
|
|_: [_; break]| {} //~ ERROR: `break` outside of a loop
|
2019-05-12 22:28:26 +01:00
|
|
|
//~^ ERROR mismatched types
|
2018-07-01 17:24:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
loop {
|
2019-08-21 15:13:13 +03:00
|
|
|
|_: [_; continue]| {} //~ ERROR: `continue` outside of a loop
|
2019-05-12 22:28:26 +01:00
|
|
|
//~^ ERROR mismatched types
|
2018-07-01 17:24:07 +01:00
|
|
|
}
|
|
|
|
}
|