summary refs log tree commit diff
path: root/tests/ui/borrowck/moved-value-in-thread-loop-12041.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/borrowck/moved-value-in-thread-loop-12041.stderr')
-rw-r--r--tests/ui/borrowck/moved-value-in-thread-loop-12041.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/borrowck/moved-value-in-thread-loop-12041.stderr b/tests/ui/borrowck/moved-value-in-thread-loop-12041.stderr
new file mode 100644
index 00000000000..627dd193dad
--- /dev/null
+++ b/tests/ui/borrowck/moved-value-in-thread-loop-12041.stderr
@@ -0,0 +1,11 @@
+error[E0382]: use of moved value: `tx`
+  --> $DIR/moved-value-in-thread-loop-12041.rs:10:22
+   |
+LL |             let tx = tx;
+   |                      ^^ value moved here, in previous iteration of loop
+   |
+   = note: move occurs because `tx` has type `std::sync::mpsc::Sender<i32>`, which does not implement the `Copy` trait
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0382`.