2017-03-17 10:49:53 -05:00
|
|
|
error[E0571]: `break` with value from a `for` loop
|
2017-05-15 15:11:16 -05:00
|
|
|
--> $DIR/loop-break-value-no-repeat.rs:22:9
|
2017-03-17 10:49:53 -05:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
22 | break 22 //~ ERROR `break` with value from a `for` loop
|
2017-03-17 10:49:53 -05:00
|
|
|
| ^^^^^^^^ can only break with a value inside `loop`
|
2018-01-28 13:14:09 -06:00
|
|
|
help: instead, use `break` on its own without a value inside this `for` loop
|
|
|
|
|
|
|
|
|
22 | break //~ ERROR `break` with value from a `for` loop
|
|
|
|
| ^^^^^
|
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-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0571"
|