fork/rust

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

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

1.40.0
658 B20 linesraw
1error: a trailing `|` is not allowed in an or-pattern
2  --> $DIR/issue-64879-trailing-before-guard.rs:10:14
3   |
4LL |         E::A |
5   |         ---- while parsing this or-pattern starting here
6LL |         E::B |
7   |              ^ help: remove the `|`
8
9error[E0308]: mismatched types
10  --> $DIR/issue-64879-trailing-before-guard.rs:12:42
11   |
12LL |             let recovery_witness: bool = 0;
13   |                                          ^ expected bool, found integer
14   |
15   = note: expected type `bool`
16              found type `{integer}`
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0308`.