1 error[E0308]: mismatched types
2 --> $DIR/type-mismatch-signature-deduction.rs:14:9
5 | ^ expected enum `Result`, found integer
7 = note: expected enum `Result<{integer}, _>`
9 note: return type inferred to be `Result<{integer}, _>` here
10 --> $DIR/type-mismatch-signature-deduction.rs:9:20
15 error[E0271]: type mismatch resolving `<[generator@$DIR/type-mismatch-signature-deduction.rs:7:5: 7:7] as Generator>::Return == i32`
16 --> $DIR/type-mismatch-signature-deduction.rs:5:13
18 LL | fn foo() -> impl Generator<Return = i32> {
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found `i32`
21 = note: expected enum `Result<{integer}, _>`
24 error: aborting due to 2 previous errors
26 Some errors have detailed explanations: E0271, E0308.
27 For more information about an error, try `rustc --explain E0271`.