rust/tests/ui/issues/issue-59756.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
226 B
Rust
Raw Normal View History

// run-rustfix
#![allow(warnings)]
struct A;
struct B;
fn foo() -> Result<A, B> {
Ok(A)
}
fn bar() -> Result<A, B> {
foo()
//~^ ERROR try expression alternatives have incompatible types [E0308]
}
fn main() {}