blob: 26921c3f1dda2c679a80071f4bab29430d5d9ea3 [file]
//! regression test for <https://github.com/rust-lang/rust/issues/18767>
//@ run-pass
// Test that regionck uses the right memcat for patterns in for loops
// and doesn't ICE.
fn main() {
for &&x in Some(&0_usize).iter() {
assert_eq!(x, 0)
}
}