]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/match/issue-87426.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / closures / 2229_closure_analysis / match / issue-87426.rs
1 // run-pass
2 // edition:2021
3
4 pub fn foo() {
5     let ref_x_ck = 123;
6     let _y = || match ref_x_ck {
7         2_000_000..=3_999_999 => { println!("A")}
8         _ => { println!("B")}
9     };
10 }
11
12 fn main() {
13     foo();
14 }