error[E0308]: mismatched types
--> $DIR/issue-6458-4.rs:1:20
|
-LL | fn foo(b: bool) -> Result<bool,String> { //~ ERROR mismatched types
+LL | fn foo(b: bool) -> Result<bool,String> {
| --- ^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
| |
| this function's body doesn't return