1 2 3 4 5 6 7
fn main() { let x = 0; match 1 { 0 ..= x => {} //~^ ERROR runtime values cannot be referenced in patterns }; }