fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.0 KiB59 linesraw
1error[E0586]: inclusive range with no end
2  --> $DIR/half-open-range-pats-inclusive-no-end.rs:10:13
3   |
4LL |     if let 0... = 1 {}
5   |             ^^^ help: use `..` instead
6   |
7   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
8
9error[E0586]: inclusive range with no end
10  --> $DIR/half-open-range-pats-inclusive-no-end.rs:11:13
11   |
12LL |     if let 0..= = 1 {}
13   |             ^^^ help: use `..` instead
14   |
15   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
16
17error[E0586]: inclusive range with no end
18  --> $DIR/half-open-range-pats-inclusive-no-end.rs:13:13
19   |
20LL |     if let X... = 1 {}
21   |             ^^^ help: use `..` instead
22   |
23   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
24
25error[E0586]: inclusive range with no end
26  --> $DIR/half-open-range-pats-inclusive-no-end.rs:14:13
27   |
28LL |     if let X..= = 1 {}
29   |             ^^^ help: use `..` instead
30   |
31   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
32
33error[E0586]: inclusive range with no end
34  --> $DIR/half-open-range-pats-inclusive-no-end.rs:20:19
35   |
36LL |             let $e...;
37   |                   ^^^ help: use `..` instead
38...
39LL |     mac!(0);
40   |     -------- in this macro invocation
41   |
42   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
43   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
44
45error[E0586]: inclusive range with no end
46  --> $DIR/half-open-range-pats-inclusive-no-end.rs:21:19
47   |
48LL |             let $e..=;
49   |                   ^^^ help: use `..` instead
50...
51LL |     mac!(0);
52   |     -------- in this macro invocation
53   |
54   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
55   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
56
57error: aborting due to 6 previous errors
58
59For more information about this error, try `rustc --explain E0586`.