summary refs log tree commit diff
path: root/src/test/run-pass/builtin-superkinds-phantom-typaram.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/builtin-superkinds-phantom-typaram.rs')
-rw-r--r--src/test/run-pass/builtin-superkinds-phantom-typaram.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/run-pass/builtin-superkinds-phantom-typaram.rs b/src/test/run-pass/builtin-superkinds-phantom-typaram.rs
index 7e1b2821937..964c28dc945 100644
--- a/src/test/run-pass/builtin-superkinds-phantom-typaram.rs
+++ b/src/test/run-pass/builtin-superkinds-phantom-typaram.rs
@@ -12,10 +12,12 @@
 // super-builtin-kind of a trait, if the type parameter is never used,
 // the type can implement the trait anyway.
 
+use std::marker;
+
 trait Foo : Send { }
 
-struct X<T>(());
+struct X<T> { marker: marker::PhantomData<T> }
 
-impl <T> Foo for X<T> { }
+impl<T:Send> Foo for X<T> { }
 
 pub fn main() { }