2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2020-05-17 10:22:48 +02:00
|
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
2015-12-28 15:40:11 -08:00
|
|
|
|
|
|
|
trait MyTrait {}
|
|
|
|
|
|
|
|
struct TestType<T>(::std::marker::PhantomData<T>);
|
|
|
|
|
|
|
|
unsafe impl<T: Clone> Send for TestType<T> {}
|
2020-04-22 20:18:22 +08:00
|
|
|
impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR E0751
|
2015-12-28 15:40:11 -08:00
|
|
|
|
|
|
|
fn main() {}
|