1 error[E0308]: mismatched types
2 --> $DIR/coercion-missing-tail-expected-type.rs:3: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: consider removing this semicolon
11 = note: expected type `i32`
14 error[E0308]: mismatched types
15 --> $DIR/coercion-missing-tail-expected-type.rs:7:13
17 LL | fn foo() -> Result<u8, u64> {
18 | --- ^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
20 | implicitly returns `()` as its body has no tail or `return` expression
22 | - help: consider removing this semicolon
24 = note: expected enum `std::result::Result<u8, u64>`
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0308`.