summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0509.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/error-codes/E0509.stderr (renamed from src/test/ui/error-codes/E0509.stderr)6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0509.stderr b/tests/ui/error-codes/E0509.stderr
index cbfbc3ccf..c00d9142e 100644
--- a/src/test/ui/error-codes/E0509.stderr
+++ b/tests/ui/error-codes/E0509.stderr
@@ -6,7 +6,11 @@ LL | let fancy_field = drop_struct.fancy;
| |
| cannot move out of here
| move occurs because `drop_struct.fancy` has type `FancyNum`, which does not implement the `Copy` trait
- | help: consider borrowing here: `&drop_struct.fancy`
+ |
+help: consider borrowing here
+ |
+LL | let fancy_field = &drop_struct.fancy;
+ | +
error: aborting due to previous error