]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/not-copy-closure.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / not-copy-closure.stderr
index 7193a3ed02782175d47fb025f4bd4d5a7ad45ba1..bdae06d3a66c492ed6a45748318c8f134fde1780 100644 (file)
@@ -1,5 +1,5 @@
 error[E0382]: use of moved value: `hello`
-  --> $DIR/not-copy-closure.rs:20:9
+  --> $DIR/not-copy-closure.rs:10:9
    |
 LL |     let b = hello;
    |         - value moved here
@@ -7,7 +7,7 @@ LL |     let c = hello; //~ ERROR use of moved value: `hello` [E0382]
    |         ^ value used here after move
    |
 note: closure cannot be invoked more than once because it moves the variable `a` out of its environment
-  --> $DIR/not-copy-closure.rs:16:9
+  --> $DIR/not-copy-closure.rs:6:9
    |
 LL |         a += 1;
    |         ^