rust/src/test/ui/loops/loop-break-value-no-repeat.stderr

14 lines
529 B
Plaintext
Raw Normal View History

error[E0571]: `break` with value from a `for` loop
2018-12-25 09:56:47 -06:00
--> $DIR/loop-break-value-no-repeat.rs:12:9
|
2018-02-22 18:42:32 -06:00
LL | break 22 //~ ERROR `break` with value from a `for` loop
| ^^^^^^^^ can only break with a value inside `loop` or breakable block
help: instead, use `break` on its own without a value inside this `for` loop
|
2018-02-24 17:01:39 -06:00
LL | break //~ ERROR `break` with value from a `for` loop
| ^^^^^
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0571`.