fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
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() {}