summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0504.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0504.stderr')
-rw-r--r--tests/ui/error-codes/E0504.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0504.stderr b/tests/ui/error-codes/E0504.stderr
index e677e8916..20e16a538 100644
--- a/tests/ui/error-codes/E0504.stderr
+++ b/tests/ui/error-codes/E0504.stderr
@@ -1,6 +1,8 @@
error[E0505]: cannot move out of `fancy_num` because it is borrowed
--> $DIR/E0504.rs:9:13
|
+LL | let fancy_num = FancyNum { num: 5 };
+ | --------- binding `fancy_num` declared here
LL | let fancy_ref = &fancy_num;
| ---------- borrow of `fancy_num` occurs here
LL |