1 error[E0277]: `F` cannot be shared between threads safely
2 --> $DIR/closure-bounds-subtype.rs:24:5
4 LL | take_const_owned(f); //~ ERROR `F` cannot be shared between threads safely [E0277]
5 | ^^^^^^^^^^^^^^^^ `F` cannot be shared between threads safely
7 = help: the trait `std::marker::Sync` is not implemented for `F`
8 = help: consider adding a `where F: std::marker::Sync` bound
9 note: required by `take_const_owned`
10 --> $DIR/closure-bounds-subtype.rs:15:1
12 LL | fn take_const_owned<F>(_: F) where F: FnOnce() + Sync + Send {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.