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