]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/issue-64130-2-send.rs
1 #![feature(optin_builtin_traits)]
4 // This tests the the specialized async-await-specific error when futures don't implement an
5 // auto trait (which is specifically Send) due to some type that was captured.
11 fn is_send
<T
: Send
>(t
: T
) { }
22 //~^ ERROR future cannot be sent between threads safely