fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected one of `=>`, `if`, or `|`, found `+` 2 --> $DIR/range_pat_interactions1.rs:19:17 3 | 4LL | 0..5+1 => errors_only.push(x), 5 | ^ expected one of `=>`, `if`, or `|` 6 7error[E0408]: variable `n` is not bound in all patterns 8 --> $DIR/range_pat_interactions1.rs:10:25 9 | 10LL | if let n @ 2..3|4 = x { 11 | - ^ pattern doesn't bind `n` 12 | | 13 | variable not in all patterns 14 15error[E0658]: exclusive range pattern syntax is experimental 16 --> $DIR/range_pat_interactions1.rs:10:20 17 | 18LL | if let n @ 2..3|4 = x { 19 | ^^^^ 20 | 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 23 24error[E0658]: exclusive range pattern syntax is experimental 25 --> $DIR/range_pat_interactions1.rs:14:23 26 | 27LL | } else if let 2..3 | 4 = x { 28 | ^^^^ 29 | 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 32 33error: aborting due to 4 previous errors 34 35Some errors have detailed explanations: E0408, E0658. 36For more information about an error, try `rustc --explain E0408`.