#![feature(optin_builtin_traits)] #![feature(marker_trait_attr)] #[marker] trait MyTrait {} struct TestType(::std::marker::PhantomData); unsafe impl Send for TestType {} impl !Send for TestType {} //~^ ERROR conflicting implementations unsafe impl Send for TestType {} //~^ ERROR conflicting implementations impl !Send for TestType {} fn main() {}