summary refs log tree commit diff
path: root/src/test/compile-fail/regions-close-object-into-object-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/regions-close-object-into-object-2.rs')
-rw-r--r--src/test/compile-fail/regions-close-object-into-object-2.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/regions-close-object-into-object-2.rs b/src/test/compile-fail/regions-close-object-into-object-2.rs
index 7861fb95fef..6de49020a6f 100644
--- a/src/test/compile-fail/regions-close-object-into-object-2.rs
+++ b/src/test/compile-fail/regions-close-object-into-object-2.rs
@@ -10,10 +10,12 @@
 
 #![feature(box_syntax)]
 
-trait A<T> {}
+use std::marker::PhantomFn;
+
+trait A<T> : PhantomFn<(Self,T)> { }
 struct B<'a, T>(&'a (A<T>+'a));
 
-trait X {}
+trait X : PhantomFn<Self> {}
 impl<'a, T> X for B<'a, T> {}
 
 fn g<'a, T: 'static>(v: Box<A<T>+'a>) -> Box<X+'static> {