fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
2.9 KiB80 linesraw
1error: range-to patterns with `...` are not allowed
2  --> $DIR/feature-gate-half-open-range-patterns.rs:9:12
3   |
4LL |     if let ...5 = 0 {}
5   |            ^^^ help: use `..=` instead
6
7error[E0586]: inclusive range with no end
8  --> $DIR/feature-gate-half-open-range-patterns.rs:16:13
9   |
10LL |     if let 5..= = 0 {}
11   |             ^^^ help: use `..` instead
12   |
13   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
14
15error[E0586]: inclusive range with no end
16  --> $DIR/feature-gate-half-open-range-patterns.rs:19:13
17   |
18LL |     if let 5... = 0 {}
19   |             ^^^ help: use `..` instead
20   |
21   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
22
23error[E0658]: half-open range patterns are unstable
24  --> $DIR/feature-gate-half-open-range-patterns.rs:7:12
25   |
26LL |     if let ..=5 = 0 {}
27   |            ^^^^
28   |
29   = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
30   = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
31
32error[E0658]: half-open range patterns are unstable
33  --> $DIR/feature-gate-half-open-range-patterns.rs:9:12
34   |
35LL |     if let ...5 = 0 {}
36   |            ^^^^
37   |
38   = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
39   = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
40
41error[E0658]: half-open range patterns are unstable
42  --> $DIR/feature-gate-half-open-range-patterns.rs:12:12
43   |
44LL |     if let ..5 = 0 {}
45   |            ^^^
46   |
47   = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
48   = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
49
50error[E0658]: half-open range patterns are unstable
51  --> $DIR/feature-gate-half-open-range-patterns.rs:14:12
52   |
53LL |     if let 5.. = 0 {}
54   |            ^^^
55   |
56   = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
57   = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
58
59error[E0658]: half-open range patterns are unstable
60  --> $DIR/feature-gate-half-open-range-patterns.rs:16:12
61   |
62LL |     if let 5..= = 0 {}
63   |            ^^^^
64   |
65   = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
66   = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
67
68error[E0658]: half-open range patterns are unstable
69  --> $DIR/feature-gate-half-open-range-patterns.rs:19:12
70   |
71LL |     if let 5... = 0 {}
72   |            ^^^^
73   |
74   = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
75   = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
76
77error: aborting due to 9 previous errors
78
79Some errors have detailed explanations: E0586, E0658.
80For more information about an error, try `rustc --explain E0586`.