summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/borrow-for-loop-head.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/borrow-for-loop-head.stderr')
-rw-r--r--tests/ui/suggestions/borrow-for-loop-head.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/suggestions/borrow-for-loop-head.stderr b/tests/ui/suggestions/borrow-for-loop-head.stderr
index cbdb94877..0f179438a 100644
--- a/tests/ui/suggestions/borrow-for-loop-head.stderr
+++ b/tests/ui/suggestions/borrow-for-loop-head.stderr
@@ -1,6 +1,8 @@
error[E0505]: cannot move out of `a` because it is borrowed
--> $DIR/borrow-for-loop-head.rs:4:18
|
+LL | let a = vec![1, 2, 3];
+ | - binding `a` declared here
LL | for i in &a {
| -- borrow of `a` occurs here
LL | for j in a {