fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
226 B17 linesraw
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() {}