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-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() {}
|