2017-03-17 11:49:53 -04:00
|
|
|
error[E0571]: `break` with value from a `for` loop
|
2017-05-15 22:11:16 +02:00
|
|
|
--> $DIR/loop-break-value-no-repeat.rs:22:9
|
2017-03-17 11:49:53 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | break 22 //~ ERROR `break` with value from a `for` loop
|
2018-04-25 19:28:04 +02:00
|
|
|
| ^^^^^^^^ can only break with a value inside `loop` or breakable block
|
2018-01-28 11:14:09 -08:00
|
|
|
help: instead, use `break` on its own without a value inside this `for` loop
|
|
|
|
|
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | break //~ ERROR `break` with value from a `for` loop
|
2018-01-28 11:14:09 -08:00
|
|
|
| ^^^^^
|
2017-03-17 11:49:53 -04:00
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to previous error
|
2017-03-17 11:49:53 -04:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0571`.
|