2019-07-09 18:50:54 -05:00
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:20:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0..Y = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let 0.0..Y = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:22:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X.. .0 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let X.. 0.0 = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:33:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0..=Y = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let 0.0..=Y = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:35:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X..=.0 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let X..=0.0 = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:58:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0...Y = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let 0.0...Y = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:62:17
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X... .0 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let X... 0.0 = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:73:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0.. = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let 0.0.. = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:79:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let 0..= = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let 0..= = 0 {}
|
|
|
|
LL + if let 0.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:80:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X..= = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let X..= = 0 {}
|
|
|
|
LL + if let X.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:81:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true..= = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let true..= = 0 {}
|
|
|
|
LL + if let true.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:83:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0..= = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let 0.0..= = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:83:14
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0..= = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let .0..= = 0 {}
|
|
|
|
LL + if let .0.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:89:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let 0... = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let 0... = 0 {}
|
|
|
|
LL + if let 0.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:90:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X... = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let X... = 0 {}
|
|
|
|
LL + if let X.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:91:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true... = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let true... = 0 {}
|
|
|
|
LL + if let true.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:93:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0... = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let 0.0... = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:93:14
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0... = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - if let .0... = 0 {}
|
|
|
|
LL + if let .0.. = 0 {}
|
|
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:103:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .. .0 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let .. 0.0 = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:113:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let ..=.0 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let ..=0.0 = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
error: range-to patterns with `...` are not allowed
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:119:12
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | if let ...3 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: use `..=` instead
|
|
|
|
|
|
|
|
|
LL | if let ..=3 = 0 {}
|
|
|
|
| ~~~
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
error: range-to patterns with `...` are not allowed
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:121:12
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | if let ...Y = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: use `..=` instead
|
|
|
|
|
|
|
|
|
LL | if let ..=Y = 0 {}
|
|
|
|
| ~~~
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
error: range-to patterns with `...` are not allowed
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:123:12
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | if let ...true = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: use `..=` instead
|
|
|
|
|
|
|
|
|
LL | if let ..=true = 0 {}
|
|
|
|
| ~~~
|
2020-01-10 23:49:43 -06:00
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
error: float literals must have an integer part
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:126:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let ....3 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | if let ...0.3 = 0 {}
|
|
|
|
| +
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
error: range-to patterns with `...` are not allowed
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:126:12
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | if let ....3 = 0 {}
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: use `..=` instead
|
|
|
|
|
|
|
|
|
LL | if let ..=.3 = 0 {}
|
|
|
|
| ~~~
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
error: range-to patterns with `...` are not allowed
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:152:17
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | let ...$e;
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2020-01-10 23:49:43 -06:00
|
|
|
...
|
|
|
|
LL | mac!(0);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..=` instead
|
|
|
|
|
|
|
|
|
LL | let ..=$e;
|
|
|
|
| ~~~
|
2020-01-10 23:49:43 -06:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:159:19
|
2019-07-29 21:22:09 -05:00
|
|
|
|
|
|
|
|
LL | let $e...;
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-07-29 21:22:09 -05:00
|
|
|
...
|
|
|
|
LL | mac!(0);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------- in this macro invocation
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - let $e...;
|
|
|
|
LL + let $e..;
|
|
|
|
|
|
2019-07-29 21:22:09 -05:00
|
|
|
|
2019-12-11 03:04:34 -06:00
|
|
|
error[E0586]: inclusive range with no end
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:161:19
|
2019-07-29 21:22:09 -05:00
|
|
|
|
|
|
|
|
LL | let $e..=;
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^^
|
2019-07-29 21:22:09 -05:00
|
|
|
...
|
|
|
|
LL | mac!(0);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------- in this macro invocation
|
2019-12-11 03:04:34 -06:00
|
|
|
|
|
2020-01-10 23:49:43 -06:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2024-07-05 22:07:46 -05:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - let $e..=;
|
|
|
|
LL + let $e..;
|
|
|
|
|
|
2019-07-29 21:22:09 -05:00
|
|
|
|
2019-07-09 18:50:54 -05:00
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:40:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let 0...3 = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:6:9
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(ellipsis_inclusive_range_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:43:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let 0...Y = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:46:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X...3 = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:49:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X...Y = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:52:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true...Y = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:55:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X...true = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:58:14
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0...Y = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:62:13
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X... .0 = 0 {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-07-29 21:22:09 -05:00
|
|
|
error: `...` range patterns are deprecated
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:137:20
|
2019-07-29 21:22:09 -05:00
|
|
|
|
|
|
|
|
LL | let $e1...$e2;
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
...
|
|
|
|
LL | mac2!(0, 1);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ----------- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-07-29 21:22:09 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:18:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true..Y = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ - this is of type `u8`
|
|
|
|
| |
|
|
|
|
| this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:19:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X..true = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| - ^^^^ this is of type `bool` but it should be `char` or numeric
|
|
|
|
| |
|
|
|
|
| this is of type `u8`
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:20:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0..Y = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - - this expression has type `{integer}`
|
|
|
|
| | |
|
|
|
|
| | this is of type `u8`
|
2019-12-13 16:33:58 -06:00
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:22:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X.. .0 = 0 {}
|
2019-12-30 02:08:18 -06:00
|
|
|
| - ^^ - this expression has type `u8`
|
|
|
|
| | |
|
2023-01-02 20:00:33 -06:00
|
|
|
| | expected `u8`, found floating-point number
|
2019-12-13 16:33:58 -06:00
|
|
|
| this is of type `u8`
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:31:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true..=Y = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ - this is of type `u8`
|
|
|
|
| |
|
|
|
|
| this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:32:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X..=true = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| - ^^^^ this is of type `bool` but it should be `char` or numeric
|
|
|
|
| |
|
|
|
|
| this is of type `u8`
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:33:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0..=Y = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - - this expression has type `{integer}`
|
|
|
|
| | |
|
|
|
|
| | this is of type `u8`
|
2019-12-13 16:33:58 -06:00
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:35:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X..=.0 = 0 {}
|
2019-12-30 02:08:18 -06:00
|
|
|
| - ^^ - this expression has type `u8`
|
|
|
|
| | |
|
2023-01-02 20:00:33 -06:00
|
|
|
| | expected `u8`, found floating-point number
|
2019-12-13 16:33:58 -06:00
|
|
|
| this is of type `u8`
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:52:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true...Y = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ - this is of type `u8`
|
|
|
|
| |
|
|
|
|
| this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:55:16
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X...true = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| - ^^^^ this is of type `bool` but it should be `char` or numeric
|
|
|
|
| |
|
|
|
|
| this is of type `u8`
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:58:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0...Y = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - - this expression has type `{integer}`
|
|
|
|
| | |
|
|
|
|
| | this is of type `u8`
|
2019-12-13 16:33:58 -06:00
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:62:17
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let X... .0 = 0 {}
|
2019-12-30 02:08:18 -06:00
|
|
|
| - ^^ - this expression has type `u8`
|
|
|
|
| | |
|
2023-01-02 20:00:33 -06:00
|
|
|
| | expected `u8`, found floating-point number
|
2019-12-13 16:33:58 -06:00
|
|
|
| this is of type `u8`
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:71:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true.. = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-07-23 21:01:38 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:73:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0.. = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:81:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true..= = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-07-23 21:01:38 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:83:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0..= = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:91:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let true... = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-07-23 21:01:38 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:93:12
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .0... = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:101:14
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let ..true = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-07-23 21:01:38 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:103:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let .. .0 = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:111:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let ..=true = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-07-23 21:01:38 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:113:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let ..=.0 = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2020-09-15 14:34:58 -05:00
|
|
|
error[E0029]: only `char` and numeric types are allowed in range patterns
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:123:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let ...true = 0 {}
|
2019-11-12 17:27:53 -06:00
|
|
|
| ^^^^ this is of type `bool` but it should be `char` or numeric
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2019-07-23 21:01:38 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:126:15
|
2019-07-09 18:50:54 -05:00
|
|
|
|
|
|
|
|
LL | if let ....3 = 0 {}
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found floating-point number
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2024-02-01 16:45:00 -06:00
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:135:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let $e1..$e2;
|
|
|
|
| ^^^^^^^^ patterns `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
|
|
|
|
...
|
|
|
|
LL | mac2!(0, 1);
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:137:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let $e1...$e2;
|
|
|
|
| ^^^^^^^^^ patterns `i32::MIN..=-1_i32` and `2_i32..=i32::MAX` not covered
|
|
|
|
...
|
|
|
|
LL | mac2!(0, 1);
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:141:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let $e1..=$e2;
|
|
|
|
| ^^^^^^^^^ patterns `i32::MIN..=-1_i32` and `2_i32..=i32::MAX` not covered
|
|
|
|
...
|
|
|
|
LL | mac2!(0, 1);
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:150:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let ..$e;
|
|
|
|
| ^^^^ pattern `0_i32..=i32::MAX` not covered
|
|
|
|
...
|
|
|
|
LL | mac!(0);
|
|
|
|
| ------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:152:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let ...$e;
|
|
|
|
| ^^^^^ pattern `1_i32..=i32::MAX` not covered
|
|
|
|
...
|
|
|
|
LL | mac!(0);
|
|
|
|
| ------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:155:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let ..=$e;
|
|
|
|
| ^^^^^ pattern `1_i32..=i32::MAX` not covered
|
|
|
|
...
|
|
|
|
LL | mac!(0);
|
|
|
|
| ------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:157:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let $e..;
|
|
|
|
| ^^^^ pattern `i32::MIN..=-1_i32` not covered
|
|
|
|
...
|
|
|
|
LL | mac!(0);
|
|
|
|
| ------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:159:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let $e...;
|
|
|
|
| ^^^^^ pattern `i32::MIN..=-1_i32` not covered
|
|
|
|
...
|
|
|
|
LL | mac!(0);
|
|
|
|
| ------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0005]: refutable pattern in local binding
|
2024-04-27 19:35:32 -05:00
|
|
|
--> $DIR/recover-range-pats.rs:161:17
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
LL | let $e..=;
|
|
|
|
| ^^^^^ pattern `i32::MIN..=-1_i32` not covered
|
|
|
|
...
|
|
|
|
LL | mac!(0);
|
|
|
|
| ------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
|
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
|
|
|
|
= note: the matched value is of type `i32`
|
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 69 previous errors
|
2019-07-09 18:50:54 -05:00
|
|
|
|
2024-02-01 16:45:00 -06:00
|
|
|
Some errors have detailed explanations: E0005, E0029, E0308, E0586.
|
|
|
|
For more information about an error, try `rustc --explain E0005`.
|