rust/tests/ui/range/exclusive-range-patterns-2021.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
313 B
Rust
Raw Normal View History

// 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
_ => {}
}
}