]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-64559.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / issues / issue-64559.stderr
index 3c685dc8d089a145dc8ce0bd95ba2941905eab0a..2c337bae130171454088824186eee57106c70202 100644 (file)
@@ -6,12 +6,18 @@ LL |     let orig = vec![true];
 LL |     for _val in orig {}
    |                 ----
    |                 |
-   |                 value moved here
+   |                 `orig` moved due to this implicit call to `.into_iter()`
    |                 help: consider borrowing to avoid moving into the for loop: `&orig`
 LL |     let _closure = || orig;
    |                    ^^ ---- use occurs due to use in closure
    |                    |
    |                    value used here after move
+   |
+note: this function consumes the receiver `self` by taking ownership of it, which moves `orig`
+  --> $SRC_DIR/libcore/iter/traits/collect.rs:LL:COL
+   |
+LL |     fn into_iter(self) -> Self::IntoIter;
+   |                  ^^^^
 
 error: aborting due to previous error