]> git.proxmox.com Git - rustc.git/blob - tests/ui/range/range-inclusive-pattern-precedence2.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / range / range-inclusive-pattern-precedence2.stderr
1 error: the range pattern here has ambiguous interpretation
2 --> $DIR/range-inclusive-pattern-precedence2.rs:14:13
3 |
4 LL | box 10..=15 => {}
5 | ^^^^^^^ help: add parentheses to clarify the precedence: `(10..=15)`
6
7 warning: `...` range patterns are deprecated
8 --> $DIR/range-inclusive-pattern-precedence2.rs:10:14
9 |
10 LL | box 0...9 => {}
11 | ^^^ help: use `..=` for an inclusive range
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-precedence2.rs:5:9
17 |
18 LL | #![warn(ellipsis_inclusive_range_patterns)]
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to previous error; 1 warning emitted
22