rust/src/test/ui/range/range-inclusive-pattern-precedence.stderr

33 lines
1.1 KiB
Plaintext
Raw Normal View History

error: the range pattern here has ambiguous interpretation
2018-12-25 09:56:47 -06:00
--> $DIR/range-inclusive-pattern-precedence.rs:17:10
|
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
|
LL | box 10..=15 => {}
| ^^^^^^^ help: add parentheses to clarify the precedence: `(10 ..=15)`
warning: `...` range patterns are deprecated
2018-12-25 09:56:47 -06:00
--> $DIR/range-inclusive-pattern-precedence.rs:14:9
|
LL | &0...9 => {}
| ^^^^^^ help: use `..=` for an inclusive range: `&(0..=9)`
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/range-inclusive-pattern-precedence.rs:9:9
|
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
|
LL | box 0...9 => {}
| ^^^ help: use `..=` for an inclusive range
error: aborting due to 2 previous errors