2019-04-07 22:19:58 +00:00
|
|
|
error[E0308]: try expression alternatives have incompatible types
|
2019-04-10 21:26:45 +00:00
|
|
|
--> $DIR/issue-59756.rs:13:5
|
2019-04-07 22:19:58 +00:00
|
|
|
|
|
|
|
|
LL | foo()?
|
2019-12-04 01:32:50 +00:00
|
|
|
| ^^^^^^ expected enum `std::result::Result`, found struct `A`
|
2019-04-07 22:19:58 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected enum `std::result::Result<A, B>`
|
|
|
|
found struct `A`
|
2019-12-04 01:32:50 +00:00
|
|
|
help: try removing this `?`
|
|
|
|
|
|
|
|
|
LL | foo()
|
|
|
|
| --
|
|
|
|
help: try using a variant of the expected enum
|
|
|
|
|
|
|
|
|
LL | Ok(foo()?)
|
|
|
|
|
|
2019-04-07 22:19:58 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|