summaryrefslogtreecommitdiffstats
path: root/src/test/ui/no_send-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/no_send-enum.rs')
-rw-r--r--src/test/ui/no_send-enum.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/no_send-enum.rs b/src/test/ui/no_send-enum.rs
deleted file mode 100644
index bd560649b..000000000
--- a/src/test/ui/no_send-enum.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-#![feature(negative_impls)]
-
-use std::marker::Send;
-
-struct NoSend;
-impl !Send for NoSend {}
-
-enum Foo {
- A(NoSend)
-}
-
-fn bar<T: Send>(_: T) {}
-
-fn main() {
- let x = Foo::A(NoSend);
- bar(x);
- //~^ ERROR `NoSend` cannot be sent between threads safely
-}