summary refs log tree commit diff
path: root/src/test/ui/specialization/specialization-overlap-negative.rs
blob: 90dbef3075b7f54f8e3e4fdf7f7b718e8542c54f (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(negative_impls)]
#![feature(specialization)]

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