1 error[E0308]: mismatched types
2 --> $DIR/coercion-missing-tail-expected-type.rs:4:24
4 LL | fn plus_one(x: i32) -> i32 {
5 | -------- ^^^ expected `i32`, found `()`
7 | implicitly returns `()` as its body has no tail or `return` expression
9 | - help: remove this semicolon to return this value
11 error[E0308]: mismatched types
12 --> $DIR/coercion-missing-tail-expected-type.rs:8:13
14 LL | fn foo() -> Result<u8, u64> {
15 | --- ^^^^^^^^^^^^^^^ expected enum `Result`, found `()`
17 | implicitly returns `()` as its body has no tail or `return` expression
19 | - help: remove this semicolon to return this value
21 = note: expected enum `Result<u8, u64>`
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0308`.