summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/decl-macro-illegal-copy.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/nll/decl-macro-illegal-copy.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/nll/decl-macro-illegal-copy.stderr b/src/test/ui/nll/decl-macro-illegal-copy.stderr
new file mode 100644
index 000000000..7948485bd
--- /dev/null
+++ b/src/test/ui/nll/decl-macro-illegal-copy.stderr
@@ -0,0 +1,14 @@
+error[E0382]: use of moved value: `wrapper.inner`
+ --> $DIR/decl-macro-illegal-copy.rs:21:9
+ |
+LL | $wrapper.inner
+ | -------------- value moved here
+...
+LL | wrapper.inner,
+ | ^^^^^^^^^^^^^ value used here after move
+ |
+ = note: move occurs because `wrapper.inner` has type `NonCopy`, which does not implement the `Copy` trait
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0382`.