error[E0308]: mismatched types | |
--> $DIR/return-type-suggestion.rs:9:9 | |
| | |
LL | Ok(()) | |
| ^^^^^^- help: consider using a semicolon here: `;` | |
| | | |
| expected `()`, found `Result<(), _>` | |
| | |
= note: expected unit type `()` | |
found enum `Result<(), _>` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |