2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2015-12-30 15:25:31 -08:00
|
|
|
#![feature(specialization)]
|
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-01-08 14:10:59 -05:00
|
|
|
impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR E0748
|
2015-12-28 15:40:11 -08:00
|
|
|
|
|
|
|
|
fn main() {}
|