1 // We are going to disallow `&a..=b` and `box a..=b` in a pattern. However, the
2 // older ... syntax is still allowed as a stability guarantee.
4 #![feature(box_patterns)]
5 #![warn(ellipsis_inclusive_range_patterns)]
9 // FIXME: can we add suggestions like `&(0..=9)`?
11 //~^ WARN `...` range patterns are deprecated
12 //~| WARN this is accepted in the current edition
13 //~| HELP use `..=` for an inclusive range
15 //~^ ERROR the range pattern here has ambiguous interpretation
16 //~^^ HELP add parentheses to clarify the precedence