mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
15 lines
314 B
Rust
15 lines
314 B
Rust
//@ edition:2021
|
|
|
|
fn main() {
|
|
let n = 2;
|
|
match n {
|
|
0...3 => {}
|
|
//~^ ERROR `...` range patterns are deprecated
|
|
4...10 => {}
|
|
//~^ ERROR `...` range patterns are deprecated
|
|
(11...100) => {}
|
|
//~^ ERROR `...` range patterns are deprecated
|
|
_ => {}
|
|
}
|
|
}
|