rust/src/test/ui/feature-gate-copy-closures.stderr
est31 38438c618c Migrate a few feature gate tests to ui
Renames only in this commit, and obviously
.stderr file additions.
2017-12-07 10:14:39 +01:00

13 lines
463 B
Plaintext

error[E0382]: use of moved value: `hello`
--> $DIR/feature-gate-copy-closures.rs:18:9
|
17 | let b = hello;
| - value moved here
18 | let c = hello; //~ ERROR use of moved value: `hello` [E0382]
| ^ value used here after move
|
= note: move occurs because `hello` has type `[closure@$DIR/feature-gate-copy-closures.rs:13:17: 15:6 a:&i32]`, which does not implement the `Copy` trait
error: aborting due to previous error