rust/tests/ui/closures/2229_closure_analysis/match/issue-87426.rs
2023-01-11 09:32:08 +00:00

15 lines
216 B
Rust

// 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();
}