mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
ab9d0e0ab6
updated `tests/ui/README.md`and `src/tools/tidy/src/issues.txt`
9 lines
295 B
Rust
9 lines
295 B
Rust
fn main() {
|
|
for _ in 0..1 {
|
|
//~^ NOTE `else` is attached to this loop
|
|
} else {
|
|
//~^ ERROR `for...else` loops are not supported
|
|
//~| NOTE consider moving this `else` clause to a separate `if` statement and use a `bool` variable to control if it should run
|
|
}
|
|
}
|