error[E0308]: try expression alternatives have incompatible types
- --> $DIR/issue-59756.rs:11:5
+ --> $DIR/issue-59756.rs:13:5
|
LL | foo()?
- | ^^^^^^ expected enum `std::result::Result`, found struct `A`
+ | ^^^^^-
+ | | |
+ | | help: try removing this `?`
+ | expected enum `std::result::Result`, found struct `A`
|
= note: expected type `std::result::Result<A, B>`
found type `A`