fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
450 B15 linesraw
1error[E0308]: try expression alternatives have incompatible types
2  --> $DIR/issue-59756.rs:13:5
3   |
4LL |     foo()?
5   |     ^^^^^-
6   |     |    |
7   |     |    help: try removing this `?`
8   |     expected enum `std::result::Result`, found struct `A`
9   |
10   = note: expected type `std::result::Result<A, B>`
11              found type `A`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0308`.