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