blob: 66d0958e4c9a450bfeec935a4e84b71b82ab0ce7 [file] [log] [blame]
#![feature(optin_builtin_traits)]
#![feature(overlapping_marker_traits)]
trait MyTrait {}
struct TestType<T>(::std::marker::PhantomData<T>);
unsafe impl<T: MyTrait+'static> Send for TestType<T> {}
impl<T: MyTrait> !Send for TestType<T> {}
//~^ ERROR E0119
unsafe impl<T:'static> Send for TestType<T> {}
impl !Send for TestType<i32> {}
//~^ ERROR E0119
fn main() {}