summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for-loop-while/for-loop-goofiness.rs
blob: 872ab168bb26dc530f0d372a2b98039903af3cac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-pass
#![allow(dead_code)]

enum BogusOption<T> {
    None,
    Some(T),
}

type Iterator = isize;

pub fn main() {
    let x = [ 3, 3, 3 ];
    for i in &x {
        assert_eq!(*i, 3);
    }
}