summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-18767.rs
blob: 2a5721b7295e1a12b8973054181660aac117f6a0 (plain)
1
2
3
4
5
6
7
8
9
10
// 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)
    }
}