]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-59756.fixed
Suggest removing `?` to resolve type errors.
[rust.git] / src / test / ui / issue-59756.fixed
1 // run-rustfix
2
3 #![allow(warnings)]
4
5 struct A;
6 struct B;
7
8 fn foo() -> Result<A, B> {
9     Ok(A)
10 }
11
12 fn bar() -> Result<A, B> {
13     foo()
14     //~^ ERROR try expression alternatives have incompatible types [E0308]
15 }
16
17 fn main() {}