1 // In expression, `&a..=b` is treated as `(&a)..=(b)` and `box a..=b` is
2 // `(box a)..=(b)`. In a pattern, however, `&a..=b` means `&(a..=b)`. This may
7 #![warn(ellipsis_inclusive_range_patterns)]
12 //~^ WARN `...` range patterns are deprecated
13 //~| WARN this is accepted in the current edition
14 //~| HELP use `..=` for an inclusive range
16 //~^ ERROR the range pattern here has ambiguous interpretation
17 //~| HELP add parentheses to clarify the precedence