summaryrefslogtreecommitdiffstats
path: root/tests/ui/specialization/specialization-overlap-negative.rs
blob: 550d37082953990ee21f23d69f4fba62f5ff9fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![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() {}