mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
12 lines
297 B
Rust
12 lines
297 B
Rust
#![feature(negative_impls)]
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
|
|
|
trait MyTrait {}
|
|
|
|
struct TestType<T>(::std::marker::PhantomData<T>);
|
|
|
|
unsafe impl<T: Clone> Send for TestType<T> {}
|
|
impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR E0751
|
|
|
|
fn main() {}
|