]> git.proxmox.com Git - rustc.git/blob - src/test/ui/half-open-range-patterns/range_pat_interactions1.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / half-open-range-patterns / range_pat_interactions1.stderr
1 error: expected one of `=>`, `if`, or `|`, found `+`
2 --> $DIR/range_pat_interactions1.rs:19:17
3 |
4 LL | 0..5+1 => errors_only.push(x),
5 | ^ expected one of `=>`, `if`, or `|`
6
7 error[E0408]: variable `n` is not bound in all patterns
8 --> $DIR/range_pat_interactions1.rs:10:25
9 |
10 LL | if let n @ 2..3|4 = x {
11 | - ^ pattern doesn't bind `n`
12 | |
13 | variable not in all patterns
14
15 error[E0658]: exclusive range pattern syntax is experimental
16 --> $DIR/range_pat_interactions1.rs:10:20
17 |
18 LL | 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
24 error[E0658]: exclusive range pattern syntax is experimental
25 --> $DIR/range_pat_interactions1.rs:14:23
26 |
27 LL | } 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
33 error: aborting due to 4 previous errors
34
35 Some errors have detailed explanations: E0408, E0658.
36 For more information about an error, try `rustc --explain E0408`.