Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 394 Bytes
// build-pass (FIXME(62277): could be check-pass?)
// run-rustfix
#![warn(ellipsis_inclusive_range_patterns)]
fn main() {
let despondency = 2;
match despondency {
1...2 => {}
//~^ WARN `...` range patterns are deprecated
_ => {}
}
match &despondency {
&1...2 => {}
//~^ WARN `...` range patterns are deprecated
_ => {}
}
}
You can’t perform that action at this time.