2 // revisions: no_drop_tracking drop_tracking
3 // [drop_tracking] check-pass
4 // [drop_tracking] compile-flags: -Zdrop-tracking=yes
5 // [no_drop_tracking] compile-flags: -Zdrop-tracking=no
7 use std::future::Future;
9 struct Client(Box<dyn Any + Send>);
12 fn status(&self) -> u16 {
19 pub fn foo() -> impl Future + Send {
20 //[no_drop_tracking]~^ ERROR future cannot be sent between threads safely
21 let client = Client(Box::new(true));
23 match client.status() {