]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
1 | error: range-to patterns with `...` are not allowed |
2 | --> $DIR/feature-gate-half-open-range-patterns.rs:9:12 | |
3 | | | |
4 | LL | if let ...5 = 0 {} | |
5 | | ^^^ help: use `..=` instead | |
6 | ||
7 | error[E0586]: inclusive range with no end | |
136023e0 | 8 | --> $DIR/feature-gate-half-open-range-patterns.rs:14:13 |
dfeec247 XL |
9 | | |
10 | LL | if let 5..= = 0 {} | |
11 | | ^^^ help: use `..` instead | |
12 | | | |
13 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
14 | ||
15 | error[E0586]: inclusive range with no end | |
136023e0 | 16 | --> $DIR/feature-gate-half-open-range-patterns.rs:16:13 |
dfeec247 XL |
17 | | |
18 | LL | if let 5... = 0 {} | |
19 | | ^^^ help: use `..` instead | |
20 | | | |
21 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
22 | ||
23 | error[E0658]: half-open range patterns are unstable | |
24 | --> $DIR/feature-gate-half-open-range-patterns.rs:7:12 | |
25 | | | |
26 | LL | if let ..=5 = 0 {} | |
27 | | ^^^^ | |
28 | | | |
74b04a01 | 29 | = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information |
dfeec247 XL |
30 | = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable |
31 | ||
32 | error[E0658]: half-open range patterns are unstable | |
33 | --> $DIR/feature-gate-half-open-range-patterns.rs:9:12 | |
34 | | | |
35 | LL | if let ...5 = 0 {} | |
36 | | ^^^^ | |
37 | | | |
74b04a01 | 38 | = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information |
dfeec247 XL |
39 | = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable |
40 | ||
41 | error[E0658]: half-open range patterns are unstable | |
42 | --> $DIR/feature-gate-half-open-range-patterns.rs:12:12 | |
43 | | | |
44 | LL | if let ..5 = 0 {} | |
45 | | ^^^ | |
46 | | | |
74b04a01 | 47 | = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information |
dfeec247 XL |
48 | = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable |
49 | ||
136023e0 | 50 | error: aborting due to 6 previous errors |
dfeec247 XL |
51 | |
52 | Some errors have detailed explanations: E0586, E0658. | |
53 | For more information about an error, try `rustc --explain E0586`. |