rust/tests/ui/specialization/specialization-overlap-negative.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
297 B
Rust
Raw Normal View History

#![feature(negative_impls)]
2020-05-17 08:22:48 +00:00
#![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> {}
2020-04-22 12:18:22 +00:00
impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR E0751
fn main() {}