rust/tests/ui/closures/2229_closure_analysis/match/issue-87426.rs
2024-02-16 20:02:50 +00:00

15 lines
218 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();
}