rust/tests/ui/break-diverging-value.stderr

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

20 lines
638 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2020-10-21 16:52:41 -05:00
--> $DIR/break-diverging-value.rs:11:26
|
LL | fn loop_break_break() -> i32 {
| ---------------- ^^^ expected `i32`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
2020-10-21 16:52:41 -05:00
error[E0308]: mismatched types
2020-10-22 17:12:46 -05:00
--> $DIR/break-diverging-value.rs:25:25
2020-10-21 16:52:41 -05:00
|
LL | fn loop_break_void() -> i32 {
| --------------- ^^^ expected `i32`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
2020-10-22 17:12:46 -05:00
error: aborting due to 2 previous errors
2020-10-22 17:12:46 -05:00
For more information about this error, try `rustc --explain E0308`.