error[E0308]: mismatched types | |
--> $DIR/type-mismatch-signature-deduction.rs:8:20 | |
| | |
LL | return Ok(6); | |
| ^^^^^ expected i32, found enum `std::result::Result` | |
| | |
= note: expected type `i32` | |
found type `std::result::Result<{integer}, _>` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |