fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
919 B22 linesraw
1error: the range pattern here has ambiguous interpretation
2  --> $DIR/range-inclusive-pattern-precedence2.rs:14:13
3   |
4LL |         box 10..=15 => {}
5   |             ^^^^^^^ help: add parentheses to clarify the precedence: `(10..=15)`
6
7warning: `...` range patterns are deprecated
8  --> $DIR/range-inclusive-pattern-precedence2.rs:10:14
9   |
10LL |         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>
15note: the lint level is defined here
16  --> $DIR/range-inclusive-pattern-precedence2.rs:5:9
17   |
18LL | #![warn(ellipsis_inclusive_range_patterns)]
19   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21error: aborting due to previous error; 1 warning emitted
22