--> $DIR/type-mismatch-signature-deduction.rs:13:9
|
LL | 5
- | ^ expected enum `std::result::Result`, found integer
+ | ^ expected enum `Result`, found integer
|
- = note: expected type `std::result::Result<{integer}, _>`
+ = note: expected type `Result<{integer}, _>`
found type `{integer}`
-note: return type inferred to be `std::result::Result<{integer}, _>` here
+note: return type inferred to be `Result<{integer}, _>` here
--> $DIR/type-mismatch-signature-deduction.rs:8:20
|
LL | return Ok(6);
--> $DIR/type-mismatch-signature-deduction.rs:5:13
|
LL | fn foo() -> impl Generator<Return = i32> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `i32`
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found `i32`
|
- = note: expected enum `std::result::Result<{integer}, _>`
+ = note: expected enum `Result<{integer}, _>`
found type `i32`
error: aborting due to 2 previous errors