summaryrefslogtreecommitdiffstats
path: root/src/test/ui/loops/issue-82916.rs
blob: 8633ea1e8cb3dc2466174104c9cd53ca1c809fb4 (plain)
1
2
3
4
5
6
7
8
9
10
struct S(i32);

fn foo(x: Vec<S>) {
    for y in x {

    }
    let z = x; //~ ERROR use of moved value: `x`
}

fn main() {}