]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/range-inclusive-pattern-precedence.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / range / range-inclusive-pattern-precedence.stderr
1 error: the range pattern here has ambiguous interpretation
2   --> $DIR/range-inclusive-pattern-precedence.rs:27:10
3    |
4 LL |         &10..=15 => {}
5    |          ^^^^^^^ help: add parentheses to clarify the precedence: `(10 ..=15)`
6
7 error: the range pattern here has ambiguous interpretation
8   --> $DIR/range-inclusive-pattern-precedence.rs:38:13
9    |
10 LL |         box 10..=15 => {}
11    |             ^^^^^^^ help: add parentheses to clarify the precedence: `(10 ..=15)`
12
13 warning: `...` range patterns are deprecated
14   --> $DIR/range-inclusive-pattern-precedence.rs:24:11
15    |
16 LL |         &0...9 => {}
17    |           ^^^ help: use `..=` for an inclusive range
18    |
19 note: lint level defined here
20   --> $DIR/range-inclusive-pattern-precedence.rs:19:9
21    |
22 LL | #![warn(ellipsis_inclusive_range_patterns)]
23    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 warning: `...` range patterns are deprecated
26   --> $DIR/range-inclusive-pattern-precedence.rs:35:14
27    |
28 LL |         box 0...9 => {}
29    |              ^^^ help: use `..=` for an inclusive range
30
31 error: aborting due to 2 previous errors
32