1 error: expected one of `=>`, `if`, or `|`, found `+`
2 --> $DIR/range_pat_interactions1.rs:19:17
4 LL | 0..5+1 => errors_only.push(x),
5 | ^ expected one of `=>`, `if`, or `|`
7 error[E0408]: variable `n` is not bound in all patterns
8 --> $DIR/range_pat_interactions1.rs:10:25
10 LL | if let n @ 2..3|4 = x {
11 | - ^ pattern doesn't bind `n`
13 | variable not in all patterns
15 error[E0658]: exclusive range pattern syntax is experimental
16 --> $DIR/range_pat_interactions1.rs:10:20
18 LL | if let n @ 2..3|4 = x {
21 = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
22 = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
24 error[E0658]: exclusive range pattern syntax is experimental
25 --> $DIR/range_pat_interactions1.rs:14:23
27 LL | } else if let 2..3 | 4 = x {
30 = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
31 = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
33 error: aborting due to 4 previous errors
35 Some errors have detailed explanations: E0408, E0658.
36 For more information about an error, try `rustc --explain E0408`.