]> git.proxmox.com Git - rustc.git/blob - tests/ui/loops/loop-else-err.stderr
c2c5c84cded5d3ffade497c0b56ac72f3d2b80f6
[rustc.git] / tests / ui / loops / loop-else-err.stderr
1 error: `loop...else` loops are not supported
2 --> $DIR/loop-else-err.rs:4:7
3 |
4 LL | loop {
5 | ---- `else` is attached to this loop
6 LL |
7 LL | } else {
8 | _______^
9 LL | |
10 LL | |
11 LL | | }
12 | |_____^
13 |
14 = note: consider moving this `else` clause to a separate `if` statement and use a `bool` variable to control if it should run
15
16 error: aborting due to previous error
17