fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
534 B16 linesraw
1error[E0571]: `break` with value from a `for` loop
2  --> $DIR/loop-break-value-no-repeat.rs:12:9
3   |
4LL |     for _ in &[1,2,3] {
5   |     ----------------- you can't `break` with a value in a `for` loop
6LL |         break 22
7   |         ^^^^^^^^ can only break with a value inside `loop` or breakable block
8   |
9help: use `break` on its own without a value inside this `for` loop
10   |
11LL |         break
12   |         ~~~~~
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0571`.