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