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