2019-12-11 10:04:34 +01:00
|
|
|
error: the range pattern here has ambiguous interpretation
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:6:10
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
|
LL | &0.. | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: add parentheses to clarify the precedence
|
|
|
|
|
|
|
|
|
LL | &(0..) | _ => {}
|
|
|
|
| + +
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
error[E0586]: inclusive range with no end
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:8:11
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
|
LL | &0..= | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
2020-01-11 06:49:43 +01:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-06 03:07:46 +00:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - &0..= | _ => {}
|
|
|
|
LL + &0.. | _ => {}
|
|
|
|
|
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
error: the range pattern here has ambiguous interpretation
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:8:10
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
|
LL | &0..= | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
help: add parentheses to clarify the precedence
|
|
|
|
|
|
|
|
|
LL | &(0..=) | _ => {}
|
|
|
|
| + +
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
error[E0586]: inclusive range with no end
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:11:11
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
|
LL | &0... | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
2020-01-11 06:49:43 +01:00
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
2024-07-06 03:07:46 +00:00
|
|
|
help: use `..` instead
|
|
|
|
|
|
|
|
|
LL - &0... | _ => {}
|
|
|
|
LL + &0.. | _ => {}
|
|
|
|
|
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
error: the range pattern here has ambiguous interpretation
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:16:10
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
|
LL | &..0 | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: add parentheses to clarify the precedence
|
|
|
|
|
|
|
|
|
LL | &(..0) | _ => {}
|
|
|
|
| + +
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
error: the range pattern here has ambiguous interpretation
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:18:10
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
|
LL | &..=0 | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
help: add parentheses to clarify the precedence
|
|
|
|
|
|
|
|
|
LL | &(..=0) | _ => {}
|
|
|
|
| + +
|
2019-12-11 10:04:34 +01:00
|
|
|
|
2020-01-11 06:49:43 +01:00
|
|
|
error: range-to patterns with `...` are not allowed
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:20:10
|
2020-01-11 06:49:43 +01:00
|
|
|
|
|
|
|
|
LL | &...0 | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: use `..=` instead
|
|
|
|
|
|
|
|
|
LL | &..=0 | _ => {}
|
|
|
|
| ~~~
|
2020-01-11 06:49:43 +01:00
|
|
|
|
|
|
|
error: the range pattern here has ambiguous interpretation
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/half-open-range-pats-ref-ambiguous-interp.rs:20:10
|
2020-01-11 06:49:43 +01:00
|
|
|
|
|
|
|
|
LL | &...0 | _ => {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
help: add parentheses to clarify the precedence
|
|
|
|
|
|
|
|
|
LL | &(...0) | _ => {}
|
|
|
|
| + +
|
2020-01-11 06:49:43 +01:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2019-12-11 10:04:34 +01:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0586`.
|