fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
524 B20 linesraw
1error[E0308]: try expression alternatives have incompatible types
2  --> $DIR/issue-59756.rs:13:5
3   |
4LL |     foo()?
5   |     ^^^^^^ expected enum `std::result::Result`, found struct `A`
6   |
7   = note: expected enum `std::result::Result<A, B>`
8            found struct `A`
9help: try removing this `?`
10   |
11LL |     foo()
12   |         --
13help: try using a variant of the expected enum
14   |
15LL |     Ok(foo()?)
16   |
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0308`.