mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
13 lines
383 B
Plaintext
13 lines
383 B
Plaintext
|
error[E0308]: try expression alternatives have incompatible types
|
||
|
--> $DIR/issue-59756.rs:11:5
|
||
|
|
|
||
|
LL | foo()?
|
||
|
| ^^^^^^ expected enum `std::result::Result`, found struct `A`
|
||
|
|
|
||
|
= 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`.
|