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