2 #![feature(negative_impls)]
7 //~^ ERROR cannot be sent between threads safely
8 //~| NOTE cannot be sent
9 //~| NOTE bound introduced by
10 //~| NOTE appears within the type
11 //~| NOTE captures the following types
14 fn gimme_send<T: Send>(t: T) {
15 //~^ NOTE required by this bound
16 //~| NOTE required by a bound
22 impl Drop for NotSend {
26 impl !Send for NotSend {}
29 //~^ NOTE used within this `async fn` body
30 //~| NOTE within this `impl Future
31 let mut x = (NotSend {},);