1 error[E0308]: try expression alternatives have incompatible types
2 --> $DIR/issue-59756.rs:13:5
5 | ^^^^^^ expected enum `std::result::Result`, found struct `A`
7 = note: expected enum `std::result::Result<A, B>`
9 help: try removing this `?`
13 help: try using a variant of the expected enum
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.