2018-05-28 21:32:03 -05:00
|
|
|
// compile-pass
|
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
#![warn(ellipsis_inclusive_range_patterns)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let despondency = 2;
|
|
|
|
match despondency {
|
|
|
|
1...2 => {}
|
|
|
|
//~^ WARN `...` range patterns are deprecated
|
|
|
|
_ => {}
|
|
|
|
}
|
2018-11-10 12:08:50 -06:00
|
|
|
|
|
|
|
match &despondency {
|
|
|
|
&1...2 => {}
|
|
|
|
//~^ WARN `...` range patterns are deprecated
|
|
|
|
_ => {}
|
|
|
|
}
|
2018-05-28 21:32:03 -05:00
|
|
|
}
|