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-04-10 23:26:45 +02:00
|
|
|
| ^^^^^-
|
|
|
|
| | |
|
|
|
|
| | help: try removing this `?`
|
|
|
|
| expected enum `std::result::Result`, found struct `A`
|
2019-04-08 00:19:58 +02:00
|
|
|
|
|
|
|
|
= note: expected type `std::result::Result<A, B>`
|
|
|
|
found type `A`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|