fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: `std::rc::Rc<usize>` cannot be sent between threads safely 2 --> $DIR/kindck-nonsendable-1.rs:9:5 3 | 4LL | fn bar<F:FnOnce() + Send>(_: F) { } 5 | ---- required by this bound in `bar` 6... 7LL | bar(move|| foo(x)); 8 | ^^^ ------------- within this `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:std::rc::Rc<usize>]` 9 | | 10 | `std::rc::Rc<usize>` cannot be sent between threads safely 11 | 12 = help: within `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:std::rc::Rc<usize>]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<usize>` 13 = note: required because it appears within the type `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:std::rc::Rc<usize>]` 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0277`.