2018-03-03 06:05:54 +08:00
|
|
|
error: the range pattern here has ambiguous interpretation
|
2018-05-28 19:32:03 -07:00
|
|
|
--> $DIR/range-inclusive-pattern-precedence.rs:27:10
|
2018-03-03 06:05:54 +08:00
|
|
|
|
|
|
|
|
LL | &10..=15 => {}
|
|
|
|
| ^^^^^^^ help: add parentheses to clarify the precedence: `(10 ..=15)`
|
|
|
|
|
|
|
|
error: the range pattern here has ambiguous interpretation
|
2018-05-28 19:32:03 -07:00
|
|
|
--> $DIR/range-inclusive-pattern-precedence.rs:38:13
|
2018-03-03 06:05:54 +08:00
|
|
|
|
|
|
|
|
LL | box 10..=15 => {}
|
|
|
|
| ^^^^^^^ help: add parentheses to clarify the precedence: `(10 ..=15)`
|
|
|
|
|
2018-05-28 19:32:03 -07:00
|
|
|
warning: `...` range patterns are deprecated
|
|
|
|
--> $DIR/range-inclusive-pattern-precedence.rs:24:11
|
|
|
|
|
|
|
|
|
LL | &0...9 => {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/range-inclusive-pattern-precedence.rs:19:9
|
|
|
|
|
|
|
|
|
LL | #![warn(ellipsis_inclusive_range_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: `...` range patterns are deprecated
|
|
|
|
--> $DIR/range-inclusive-pattern-precedence.rs:35:14
|
|
|
|
|
|
|
|
|
LL | box 0...9 => {}
|
|
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
|
2018-03-03 06:05:54 +08:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|