about summary refs log tree commit diff
path: root/tests/ui/variance
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-01-15 03:06:44 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-01-15 19:46:20 +0000
commit656db98bd99caf7e5c5e81ad11ed8922e28c46fb (patch)
treeb6f22583888b8780d2cf3775692e7ecf778a2bbb /tests/ui/variance
parentae4d89dfb51535c1c43052ef848564bd2323c9ca (diff)
downloadrust-656db98bd99caf7e5c5e81ad11ed8922e28c46fb.tar.gz
rust-656db98bd99caf7e5c5e81ad11ed8922e28c46fb.zip
Tweak E0597
CC #99430
Diffstat (limited to 'tests/ui/variance')
-rw-r--r--tests/ui/variance/variance-issue-20533.stderr6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/variance/variance-issue-20533.stderr b/tests/ui/variance/variance-issue-20533.stderr
index 008e2a002bb..258f67db5ce 100644
--- a/tests/ui/variance/variance-issue-20533.stderr
+++ b/tests/ui/variance/variance-issue-20533.stderr
@@ -1,6 +1,8 @@
 error[E0505]: cannot move out of `a` because it is borrowed
   --> $DIR/variance-issue-20533.rs:28:14
    |
+LL |         let a = AffineU32(1);
+   |             - binding `a` declared here
 LL |         let x = foo(&a);
    |                     -- borrow of `a` occurs here
 LL |         drop(a);
@@ -11,6 +13,8 @@ LL |         drop(x);
 error[E0505]: cannot move out of `a` because it is borrowed
   --> $DIR/variance-issue-20533.rs:34:14
    |
+LL |         let a = AffineU32(1);
+   |             - binding `a` declared here
 LL |         let x = bar(&a);
    |                     -- borrow of `a` occurs here
 LL |         drop(a);
@@ -21,6 +25,8 @@ LL |         drop(x);
 error[E0505]: cannot move out of `a` because it is borrowed
   --> $DIR/variance-issue-20533.rs:40:14
    |
+LL |         let a = AffineU32(1);
+   |             - binding `a` declared here
 LL |         let x = baz(&a);
    |                     -- borrow of `a` occurs here
 LL |         drop(a);