diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/loops/issue-82916.stderr (renamed from src/test/ui/loops/issue-82916.stderr) | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/ui/loops/issue-82916.stderr b/tests/ui/loops/issue-82916.stderr index 57d76016c..e6a60d7bc 100644 --- a/src/test/ui/loops/issue-82916.stderr +++ b/tests/ui/loops/issue-82916.stderr @@ -9,11 +9,8 @@ LL | for y in x { LL | let z = x; | ^ value used here after move | -note: this function takes ownership of the receiver `self`, which moves `x` +note: `into_iter` takes ownership of the receiver `self`, which moves `x` --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL - | -LL | fn into_iter(self) -> Self::IntoIter; - | ^^^^ help: consider iterating over a slice of the `Vec<S>`'s content to avoid moving into the `for` loop | LL | for y in &x { |