]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-59756.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / issues / issue-59756.rs
1 // run-rustfix
2 // ignore-test
3 //
4 // FIXME: Re-enable this test once we support choosing
5 // between multiple mutually exclusive suggestions for the same span
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() {}