1 #![feature(negative_impls)]
8 //~^ ERROR inherent impls cannot be negative
12 unsafe impl !Send for TestType {}
13 //~^ ERROR negative impls cannot be unsafe
14 impl !TestTrait for TestType {}
16 struct TestType2<T>(T);
18 impl<T> !TestType2<T> {}
19 //~^ ERROR inherent impls cannot be negative
21 unsafe impl<T> !Send for TestType2<T> {}
22 //~^ ERROR negative impls cannot be unsafe
23 impl<T> !TestTrait for TestType2<T> {}