]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | // run-rustfix |
60c5eb7d XL |
2 | // ignore-test |
3 | // | |
4 | // FIXME: Re-enable this test once we support choosing | |
5 | // between multiple mutually exclusive suggestions for the same span | |
48663c56 XL |
6 | |
7 | #![allow(warnings)] | |
8 | ||
9 | struct A; | |
10 | struct B; | |
11 | ||
12 | fn foo() -> Result<A, B> { | |
13 | Ok(A) | |
14 | } | |
15 | ||
16 | fn bar() -> Result<A, B> { | |
17 | foo()? | |
18 | //~^ ERROR try expression alternatives have incompatible types [E0308] | |
19 | } | |
20 | ||
21 | fn main() {} |