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