summary refs log tree commit diff
path: root/src/test/ui/specialization/specialization-overlap-negative.rs
blob: af80d6686e3a19869d387b5a354cd2bd83e7587e (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(optin_builtin_traits)]
#![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 E0119

fn main() {}