1 fn take_any<F>(_: F) where F: FnOnce() {
4 fn take_const_owned<F>(_: F) where F: FnOnce() + Sync + Send {
7 fn give_any<F>(f: F) where F: FnOnce() {
11 fn give_owned<F>(f: F) where F: FnOnce() + Send {
13 take_const_owned(f); //~ ERROR `F` cannot be shared between threads safely [E0277]