fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

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