1 // revisions: no_drop_tracking drop_tracking drop_tracking_mir
2 // [drop_tracking] compile-flags: -Zdrop-tracking
3 // [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
4 #![feature(negative_impls)]
7 // This tests the specialized async-await-specific error when futures don't implement an
8 // auto trait (which is specifically Send) due to some type that was captured.
14 fn is_send<T: Send>(t: T) { }
17 let x = Box::new(Foo);
25 //~^ ERROR future cannot be sent between threads safely