fork/rust

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

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

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