summary refs log tree commit diff
path: root/src/test/ui/range/range-inclusive-pattern-precedence.stderr
blob: 6fa67a5d4fa30c1295176e729670db0f49e60296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
error: the range pattern here has ambiguous interpretation
  --> $DIR/range-inclusive-pattern-precedence.rs:27:10
   |
LL |         &10..=15 => {}
   |          ^^^^^^^ help: add parentheses to clarify the precedence: `(10 ..=15)`

error: the range pattern here has ambiguous interpretation
  --> $DIR/range-inclusive-pattern-precedence.rs:38:13
   |
LL |         box 10..=15 => {}
   |             ^^^^^^^ help: add parentheses to clarify the precedence: `(10 ..=15)`

warning: `...` range patterns are deprecated
  --> $DIR/range-inclusive-pattern-precedence.rs:24:9
   |
LL |         &0...9 => {}
   |         ^^^^^^ help: use `..=` for an inclusive range: `&(0..=9)`
   |
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

error: aborting due to 2 previous errors