fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1// run-rustfix 2 3#![allow(warnings)] 4 5struct A; 6struct B; 7 8fn foo() -> Result<A, B> { 9 Ok(A) 10} 11 12fn bar() -> Result<A, B> { 13 foo() 14 //~^ ERROR try expression alternatives have incompatible types [E0308] 15} 16 17fn main() {}