]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / half-open-range-patterns / half-open-range-pats-inclusive-no-end.stderr
1 error[E0586]: inclusive range with no end
2   --> $DIR/half-open-range-pats-inclusive-no-end.rs:8:13
3    |
4 LL |     if let 0... = 1 {}
5    |             ^^^ help: use `..` instead
6    |
7    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
8
9 error[E0586]: inclusive range with no end
10   --> $DIR/half-open-range-pats-inclusive-no-end.rs:9:13
11    |
12 LL |     if let 0..= = 1 {}
13    |             ^^^ help: use `..` instead
14    |
15    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
16
17 error[E0586]: inclusive range with no end
18   --> $DIR/half-open-range-pats-inclusive-no-end.rs:11:13
19    |
20 LL |     if let X... = 1 {}
21    |             ^^^ help: use `..` instead
22    |
23    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
24
25 error[E0586]: inclusive range with no end
26   --> $DIR/half-open-range-pats-inclusive-no-end.rs:12:13
27    |
28 LL |     if let X..= = 1 {}
29    |             ^^^ help: use `..` instead
30    |
31    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
32
33 error[E0586]: inclusive range with no end
34   --> $DIR/half-open-range-pats-inclusive-no-end.rs:18:19
35    |
36 LL |             let $e...;
37    |                   ^^^ help: use `..` instead
38 ...
39 LL |     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 the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
44
45 error[E0586]: inclusive range with no end
46   --> $DIR/half-open-range-pats-inclusive-no-end.rs:19:19
47    |
48 LL |             let $e..=;
49    |                   ^^^ help: use `..` instead
50 ...
51 LL |     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 the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
56
57 error: aborting due to 6 previous errors
58
59 For more information about this error, try `rustc --explain E0586`.