about summary refs log tree commit diff
path: root/src/test/ui/exclusive-drop-and-copy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/exclusive-drop-and-copy.rs')
-rw-r--r--src/test/ui/exclusive-drop-and-copy.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/exclusive-drop-and-copy.rs b/src/test/ui/exclusive-drop-and-copy.rs
deleted file mode 100644
index 7a251671ee9..00000000000
--- a/src/test/ui/exclusive-drop-and-copy.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// issue #20126
-
-#[derive(Copy, Clone)] //~ ERROR the trait `Copy` may not be implemented
-struct Foo;
-
-impl Drop for Foo {
-    fn drop(&mut self) {}
-}
-
-#[derive(Copy, Clone)] //~ ERROR the trait `Copy` may not be implemented
-struct Bar<T>(::std::marker::PhantomData<T>);
-
-impl<T> Drop for Bar<T> {
-    fn drop(&mut self) {}
-}
-
-fn main() {}