]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/inclusive-range-pattern-syntax.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / inclusive-range-pattern-syntax.stderr
1 warning: `...` range patterns are deprecated
2   --> $DIR/inclusive-range-pattern-syntax.rs:9:10
3    |
4 LL |         1...2 => {}
5    |          ^^^ help: use `..=` for an inclusive range
6    |
7 note: the lint level is defined here
8   --> $DIR/inclusive-range-pattern-syntax.rs:4:9
9    |
10 LL | #![warn(ellipsis_inclusive_range_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
13    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
14
15 warning: `...` range patterns are deprecated
16   --> $DIR/inclusive-range-pattern-syntax.rs:16:9
17    |
18 LL |         &1...2 => {}
19    |         ^^^^^^ help: use `..=` for an inclusive range: `&(1..=2)`
20    |
21    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
22    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
23
24 warning: 2 warnings emitted
25