rust/tests/ui/closures/2229_closure_analysis/match/issue-87426.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
216 B
Rust
Raw Normal View History

// 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();
2021-07-28 11:27:57 -05:00
}