]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.stderr
Rollup merge of #105419 - YC:issue-41731, r=petrochenkov
[rust.git] / src / test / ui / borrowck / borrowck-move-out-of-overloaded-auto-deref.stderr
index 800f30b34e58921dd71977b9d9c753562928429a..ecf5382e863e00336d9ec449722a272f8044d628 100644 (file)
@@ -7,11 +7,8 @@ LL |     let _x = Rc::new(vec![1, 2]).into_iter();
    |              |                   value moved due to this method call
    |              move occurs because value has type `Vec<i32>`, which does not implement the `Copy` trait
    |
-note: this function takes ownership of the receiver `self`, which moves value
+note: `into_iter` takes ownership of the receiver `self`, which moves value
   --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
-   |
-LL |     fn into_iter(self) -> Self::IntoIter;
-   |                  ^^^^
 
 error: aborting due to previous error