summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr b/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr
new file mode 100644
index 000000000..b3ec3cd8d
--- /dev/null
+++ b/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr
@@ -0,0 +1,9 @@
+error[E0507]: cannot move out of `*t` which is behind a shared reference
+ --> $DIR/trivial-bounds-leak-copy.rs:9:5
+ |
+LL | *t
+ | ^^ move occurs because `*t` has type `String`, which does not implement the `Copy` trait
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0507`.