]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/borrowck-feature-nll-overrides-migrate.zflag.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-feature-nll-overrides-migrate.zflag.stderr
index e2c8073241487c805e027e3925b5749ada3d8a23..d88185af778f16b75b31488f5b45bf67488b4ee8 100644 (file)
@@ -2,10 +2,8 @@ error[E0507]: cannot move out of `foo` in pattern guard
   --> $DIR/borrowck-feature-nll-overrides-migrate.rs:22:18
    |
 LL |                 (|| { let bar = foo; bar.take() })();
-   |                  ^^             ---
-   |                  |              |
-   |                  |              move occurs because `foo` has type `&mut Option<&i32>`, which does not implement the `Copy` trait
-   |                  |              move occurs due to use in closure
+   |                  ^^             --- move occurs because `foo` has type `&mut Option<&i32>`, which does not implement the `Copy` trait
+   |                  |
    |                  move out of `foo` occurs here
    |
    = note: variables bound in patterns cannot be moved from until after the end of the pattern guard