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
9 unsafe impl Send for Foo {}
11 async fn bar(_: Foo) {}
13 fn assert_send<T: Send>(_: T) {}
17 //[no_drop_tracking]~^ ERROR future cannot be sent between threads safely
18 bar(Foo(std::ptr::null())).await;