summary refs log tree commit diff
path: root/src/test/compile-fail/exclusive-drop-and-copy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/exclusive-drop-and-copy.rs')
-rw-r--r--src/test/compile-fail/exclusive-drop-and-copy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/exclusive-drop-and-copy.rs b/src/test/compile-fail/exclusive-drop-and-copy.rs
index 17453bc677f..f47f14d5879 100644
--- a/src/test/compile-fail/exclusive-drop-and-copy.rs
+++ b/src/test/compile-fail/exclusive-drop-and-copy.rs
@@ -20,7 +20,7 @@ impl Drop for Foo {
 }
 
 #[derive(Copy)] //~ ERROR the trait `Copy` may not be implemented
-struct Bar<T>;
+struct Bar<T>(::std::marker::PhantomData<T>);
 
 #[unsafe_destructor]
 impl<T> Drop for Bar<T> {