]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-59756.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-59756.rs
CommitLineData
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
9struct A;
10struct B;
11
12fn foo() -> Result<A, B> {
13 Ok(A)
14}
15
16fn bar() -> Result<A, B> {
17 foo()?
18 //~^ ERROR try expression alternatives have incompatible types [E0308]
19}
20
21fn main() {}