2020-01-09 10:56:38 +00:00
|
|
|
#![feature(negative_impls)]
|
2020-05-17 08:22:48 +00:00
|
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
2015-12-28 23:40:11 +00:00
|
|
|
|
|
|
|
trait MyTrait {}
|
|
|
|
|
|
|
|
struct TestType<T>(::std::marker::PhantomData<T>);
|
|
|
|
|
|
|
|
unsafe impl<T: Clone> Send for TestType<T> {}
|
2025-02-28 01:28:32 +00:00
|
|
|
impl<T: MyTrait> !Send for TestType<T> {}
|
|
|
|
//~^ ERROR found both positive and negative implementation of trait `Send` for type `TestType<_>`
|
|
|
|
//~| ERROR `!Send` impl requires `T: MyTrait` but the struct it is implemented for does not
|
2015-12-28 23:40:11 +00:00
|
|
|
|
|
|
|
fn main() {}
|