1 #![feature(negative_impls)]
2 #![feature(marker_trait_attr)]
7 struct TestType<T>(::std::marker::PhantomData<T>);
9 unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
11 impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR found both positive and negative implementation
13 unsafe impl<T: 'static> Send for TestType<T> {} //~ ERROR conflicting implementations
15 impl !Send for TestType<i32> {}