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 Sync) due to some type that was captured.
14 fn is_sync<T: Sync>(t: T) { }
26 //~^ ERROR future cannot be shared between threads safely