2021-04-24 16:08:22 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/loop-no-implicit-break.rs:3:9
|
|
|
|
|
|
2021-04-24 17:00:24 +00:00
|
|
|
LL | 1
|
|
|
|
| ^ expected `()`, found integer
|
2021-04-24 16:08:22 +00:00
|
|
|
|
|
|
|
|
help: you might have meant to break the loop with this value
|
|
|
|
|
|
2021-04-24 17:00:24 +00:00
|
|
|
LL | break 1;
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++ +
|
2021-04-24 16:08:22 +00:00
|
|
|
|
2021-04-24 17:00:24 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/loop-no-implicit-break.rs:13:9
|
|
|
|
|
|
|
|
|
LL | 1
|
|
|
|
| ^ expected `()`, found integer
|
|
|
|
|
|
|
|
|
help: you might have meant to break the loop with this value
|
|
|
|
|
|
|
|
|
LL | break 1;
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++ +
|
2021-04-24 17:00:24 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/loop-no-implicit-break.rs:21:9
|
|
|
|
|
|
|
|
|
LL | 1
|
|
|
|
| ^ expected `()`, found integer
|
|
|
|
|
|
|
|
|
help: you might have meant to return this value
|
|
|
|
|
|
|
|
|
LL | return 1;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++ +
|
2021-04-24 17:00:24 +00:00
|
|
|
|
2021-04-24 20:20:08 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/loop-no-implicit-break.rs:29:9
|
|
|
|
|
|
|
|
|
LL | 1
|
|
|
|
| ^ expected `()`, found integer
|
|
|
|
|
|
|
|
|
help: you might have meant to return this value
|
|
|
|
|
|
|
|
|
LL | return 1;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++ +
|
2021-04-24 20:20:08 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2021-04-24 16:08:22 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|