#![feature(negative_impls)] struct MySendable { t: *mut u8 } unsafe impl Send for MySendable {} struct MyNotSendable { t: *mut u8 } impl !Send for MyNotSendable {} fn is_send() {} fn main() { is_send::(); is_send::(); //~^ ERROR `MyNotSendable` cannot be sent between threads safely }