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