]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/issue-64879-trailing-before-guard.stderr
Remove E0308 note when primary label has all info
[rust.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 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0308`.