summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0297.rs
blob: 27c7960d97731cfee4abe308113c35e8dd9b2687 (plain)
1
2
3
4
5
6
fn main() {
    let xs : Vec<Option<i32>> = vec![Some(1), None];

    for Some(x) in xs {}
    //~^ ERROR E0005
}