]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/closure-bounds-subtype.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / closures / closure-bounds-subtype.stderr
1 error[E0277]: `F` cannot be shared between threads safely
2   --> $DIR/closure-bounds-subtype.rs:24:5
3    |
4 LL |     take_const_owned(f); //~ ERROR `F` cannot be shared between threads safely [E0277]
5    |     ^^^^^^^^^^^^^^^^ `F` cannot be shared between threads safely
6    |
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
11    |
12 LL | fn take_const_owned<F>(_: F) where F: FnOnce() + Sync + Send {
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.