1 error[E0277]: `Rc<usize>` cannot be sent between threads safely
2 --> $DIR/kindck-nonsendable-1.rs:9:9
4 LL | bar(move|| foo(x));
7 | | `Rc<usize>` cannot be sent between threads safely
8 | | within this `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:15]`
9 | required by a bound introduced by this call
11 = help: within `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:15]`, the trait `Send` is not implemented for `Rc<usize>`
12 note: required because it's used within this closure
13 --> $DIR/kindck-nonsendable-1.rs:9:9
15 LL | bar(move|| foo(x));
17 note: required by a bound in `bar`
18 --> $DIR/kindck-nonsendable-1.rs:5:21
20 LL | fn bar<F:FnOnce() + Send>(_: F) { }
21 | ^^^^ required by this bound in `bar`
23 error: aborting due to previous error
25 For more information about this error, try `rustc --explain E0277`.