]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/move-in-pattern-mut-in-loop.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / borrowck / move-in-pattern-mut-in-loop.stderr
index c6931ba72579bf74db5e2ffecb6be411512b750b..55948afca733b763e35c15ec362211499da800d0 100644 (file)
@@ -5,7 +5,7 @@ LL |         if let Some(mut _x) = opt {}
    |                     ^^^^^^ value moved here, in previous iteration of loop
    |
    = note: move occurs because value has type `&mut i32`, which does not implement the `Copy` trait
-help: borrow this field in the pattern to avoid moving `opt.0`
+help: borrow this binding in the pattern to avoid moving the value
    |
 LL |         if let Some(ref mut _x) = opt {}
    |                     +++