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