fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.8 KiB57 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
44error[E0586]: inclusive range with no end
45  --> $DIR/half-open-range-pats-inclusive-no-end.rs:21:19
46   |
47LL |             let $e..=;
48   |                   ^^^ help: use `..` instead
49...
50LL |     mac!(0);
51   |     -------- in this macro invocation
52   |
53   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
54
55error: aborting due to 6 previous errors
56
57For more information about this error, try `rustc --explain E0586`.