match despondency {
1..=2 => {}
//~^ WARN `...` range patterns are deprecated
- //~| WARN this was previously accepted by the compiler
+ //~| WARN this is accepted in the current edition
_ => {}
}
match &despondency {
&(1..=2) => {}
//~^ WARN `...` range patterns are deprecated
- //~| WARN this was previously accepted by the compiler
+ //~| WARN this is accepted in the current edition
_ => {}
}
}