2 // revisions: no_drop_tracking drop_tracking
3 // [drop_tracking] compile-flags: -Zdrop-tracking=yes
4 // [no_drop_tracking] compile-flags: -Zdrop-tracking=no
5 #![feature(negative_impls)]
10 //~^ ERROR cannot be sent between threads safely
11 //~| NOTE cannot be sent
12 //~| NOTE bound introduced by
13 //~| NOTE appears within the type
14 //~| NOTE captures the following types
17 fn gimme_send<T: Send>(t: T) {
18 //~^ NOTE required by this bound
19 //~| NOTE required by a bound
25 impl Drop for NotSend {
29 impl !Send for NotSend {}
32 //~^ NOTE used within this `async fn` body
33 //~| NOTE within this `impl Future
34 let mut x = (NotSend {},);