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