]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-24357.nll.stderr
Auto merge of #53316 - tristanburgess:52895_existential_type_ICE, r=oli-obk
[rust.git] / src / test / ui / issues / issue-24357.nll.stderr
1 error[E0382]: use of moved value: `x`
2   --> $DIR/issue-24357.rs:16:12
3    |
4 LL |    let f = move || { let y = x; };
5    |            -------           - variable moved due to use in closure
6    |            |
7    |            value moved into closure here
8 LL |    //~^ NOTE value moved (into closure) here
9 LL |    let z = x;
10    |            ^ value used here after move
11    |
12    = note: move occurs because `x` has type `NoCopy`, which does not implement the `Copy` trait
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0382`.