fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0277]: `F` cannot be sent between threads safely 2 --> $DIR/closure-bounds-cant-promote-superkind-in-struct.rs:5:1 3 | 4LL | struct X<F> where F: FnOnce() + 'static + Send { 5 | ---------------------------------------------- required by `X` 6... 7LL | / fn foo<F>(blk: F) -> X<F> where F: FnOnce() + 'static { 8LL | | 9LL | | return X { field: blk }; 10LL | | } 11 | |_^ `F` cannot be sent between threads safely 12 | 13 = help: the trait `std::marker::Send` is not implemented for `F` 14 = help: consider adding a `where F: std::marker::Send` bound 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0277`.