]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/range-inclusive-pattern-precedence.stderr
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[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:15:10
3    |
4 LL |         &10..=15 => {}
5    |          ^^^^^^^ help: add parentheses to clarify the precedence: `(10..=15)`
6
7 warning: `...` range patterns are deprecated
8   --> $DIR/range-inclusive-pattern-precedence.rs:11:9
9    |
10 LL |         &0...9 => {}
11    |         ^^^^^^ help: use `..=` for an inclusive range: `&(0..=9)`
12    |
13    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
14    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
15 note: the lint level is defined here
16   --> $DIR/range-inclusive-pattern-precedence.rs:7:9
17    |
18 LL | #![warn(ellipsis_inclusive_range_patterns)]
19    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to previous error; 1 warning emitted
22