]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-59756.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / 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() {}