1 error[E0308]: mismatched types
2 --> $DIR/empty-trailing-stmt.rs:6:7
5 | ^^^^ expected `()`, found `bool`
7 help: you might have meant to return this value
12 error[E0308]: mismatched types
13 --> $DIR/empty-trailing-stmt.rs:5:13
15 LL | fn foo() -> bool {
16 | --- ^^^^ expected `bool`, found `()`
18 | implicitly returns `()` as its body has no tail or `return` expression
20 error: aborting due to 2 previous errors
22 For more information about this error, try `rustc --explain E0308`.