blob: e023fc363ddc8b473bd1ac8ee0af9556b36c5cf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//@ run-pass
//@ edition:2021
pub fn foo() {
let ref_x_ck = 123;
let _y = || match ref_x_ck {
2_000_000..=3_999_999 => { println!("A")}
_ => { println!("B")}
};
}
fn main() {
foo();
}
|