8 lines
139 B
Rust
8 lines
139 B
Rust
fn main() {
|
|
let x = 0;
|
|
match 1 {
|
|
0 ..= x => {}
|
|
//~^ ERROR runtime values cannot be referenced in patterns
|
|
};
|
|
}
|