]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-6250.rs
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / crashes / ice-6250.rs
1 // originally from glacier/fixed/77218.rs
2 // ice while adjusting...
3
4 pub struct Cache {
5     data: Vec<i32>,
6 }
7
8 pub fn list_data(cache: &Cache, key: usize) {
9     for reference in vec![1, 2, 3] {
10         if
11         /* let */
12         Some(reference) = cache.data.get(key) {
13             unimplemented!()
14         }
15     }
16 }