2017-03-17 10:49:53 -05:00
|
|
|
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
|
2017-03-17 10:49:53 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | break 22
|
2018-04-25 12:28:04 -05:00
|
|
|
| ^^^^^^^^ can only break with a value inside `loop` or breakable block
|
2018-01-28 13:14:09 -06:00
|
|
|
help: instead, use `break` on its own without a value inside this `for` loop
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | break
|
2018-01-28 13:14:09 -06:00
|
|
|
| ^^^^^
|
2017-03-17 10:49:53 -05:00
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to previous error
|
2017-03-17 10:49:53 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0571`.
|