summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-6250.rs
blob: c33580ff6ab6aa52182c5527b70523b45904550e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// originally from glacier/fixed/77218.rs
// ice while adjusting...

pub struct Cache {
    data: Vec<i32>,
}

pub fn list_data(cache: &Cache, key: usize) {
    for reference in vec![1, 2, 3] {
        if
        /* let */
        Some(reference) = cache.data.get(key) {
            unimplemented!()
        }
    }
}