summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/closure-move-sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/closure-move-sync.rs')
-rw-r--r--tests/ui/closures/closure-move-sync.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/ui/closures/closure-move-sync.rs b/tests/ui/closures/closure-move-sync.rs
index ea2d1434c..3ee2b35f5 100644
--- a/tests/ui/closures/closure-move-sync.rs
+++ b/tests/ui/closures/closure-move-sync.rs
@@ -13,10 +13,4 @@ fn bar() {
t.join().unwrap();
}
-fn foo() {
- let (tx, _rx) = channel();
- thread::spawn(|| tx.send(()).unwrap());
- //~^ ERROR `Sender<()>` cannot be shared between threads safely
-}
-
fn main() {}