1 error: range-to patterns with `...` are not allowed
2 --> $DIR/feature-gate-half-open-range-patterns.rs:9:12
4 LL | if let ...5 = 0 {}
5 | ^^^ help: use `..=` instead
7 error[E0586]: inclusive range with no end
8 --> $DIR/feature-gate-half-open-range-patterns.rs:16:13
10 LL | if let 5..= = 0 {}
11 | ^^^ help: use `..` instead
13 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
15 error[E0586]: inclusive range with no end
16 --> $DIR/feature-gate-half-open-range-patterns.rs:19:13
18 LL | if let 5... = 0 {}
19 | ^^^ help: use `..` instead
21 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
23 error[E0658]: half-open range patterns are unstable
24 --> $DIR/feature-gate-half-open-range-patterns.rs:7:12
26 LL | if let ..=5 = 0 {}
29 = note: for more information, see https://github.com/rust-lang/rust/issues/67264
30 = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
32 error[E0658]: half-open range patterns are unstable
33 --> $DIR/feature-gate-half-open-range-patterns.rs:9:12
35 LL | if let ...5 = 0 {}
38 = note: for more information, see https://github.com/rust-lang/rust/issues/67264
39 = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
41 error[E0658]: half-open range patterns are unstable
42 --> $DIR/feature-gate-half-open-range-patterns.rs:12:12
44 LL | if let ..5 = 0 {}
47 = note: for more information, see https://github.com/rust-lang/rust/issues/67264
48 = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
50 error[E0658]: half-open range patterns are unstable
51 --> $DIR/feature-gate-half-open-range-patterns.rs:14:12
53 LL | if let 5.. = 0 {}
56 = note: for more information, see https://github.com/rust-lang/rust/issues/67264
57 = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
59 error[E0658]: half-open range patterns are unstable
60 --> $DIR/feature-gate-half-open-range-patterns.rs:16:12
62 LL | if let 5..= = 0 {}
65 = note: for more information, see https://github.com/rust-lang/rust/issues/67264
66 = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
68 error[E0658]: half-open range patterns are unstable
69 --> $DIR/feature-gate-half-open-range-patterns.rs:19:12
71 LL | if let 5... = 0 {}
74 = note: for more information, see https://github.com/rust-lang/rust/issues/67264
75 = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
77 error: aborting due to 9 previous errors
79 Some errors have detailed explanations: E0586, E0658.
80 For more information about an error, try `rustc --explain E0586`.