1 error[E0277]: `F` cannot be shared between threads safely
2 --> $DIR/closure-bounds-subtype.rs:13:22
4 LL | fn take_const_owned<F>(_: F) where F: FnOnce() + Sync + Send {
5 | ---- required by this bound in `take_const_owned`
7 LL | take_const_owned(f);
8 | ^ `F` cannot be shared between threads safely
10 help: consider further restricting this bound
12 LL | fn give_owned<F>(f: F) where F: FnOnce() + Send + std::marker::Sync {
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.