rust-clippy/tests/ui/crashes/ice-6250.rs
2023-08-11 14:02:28 +00:00

16 lines
331 B
Rust

// originally from glacier/fixed/77218.rs
// ice while adjusting...
//@no-rustfix
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!()
}
}
}