rust/tests/ui/loops/loop-no-implicit-break.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-04-24 11:08:22 -05:00
error[E0308]: mismatched types
--> $DIR/loop-no-implicit-break.rs:3:9
|
2021-04-24 12:00:24 -05:00
LL | 1
| ^ expected `()`, found integer
2021-04-24 11:08:22 -05:00
|
help: you might have meant to break the loop with this value
|
2021-04-24 12:00:24 -05:00
LL | break 1;
| +++++ +
2021-04-24 11:08:22 -05:00
2021-04-24 12:00:24 -05: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-04-24 12:00:24 -05: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-04-24 12:00:24 -05:00
2021-04-24 15:20:08 -05: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-04-24 15:20:08 -05:00
error: aborting due to 4 previous errors
2021-04-24 11:08:22 -05:00
For more information about this error, try `rustc --explain E0308`.