]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-59756.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-59756.stderr
1 error[E0308]: try expression alternatives have incompatible types
2   --> $DIR/issue-59756.rs:13:5
3    |
4 LL |     foo()?
5    |     ^^^^^^ expected enum `std::result::Result`, found struct `A`
6    |
7    = note: expected enum `std::result::Result<A, B>`
8             found struct `A`
9 help: try removing this `?`
10    |
11 LL |     foo()
12    |         --
13 help: try using a variant of the expected enum
14    |
15 LL |     Ok(foo()?)
16    |
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.