]> git.proxmox.com Git - rustc.git/blame - src/test/ui/kindck/kindck-nonsendable-1.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / kindck / kindck-nonsendable-1.stderr
CommitLineData
1b1a35ee 1error[E0277]: `Rc<usize>` cannot be sent between threads safely
0731742a 2 --> $DIR/kindck-nonsendable-1.rs:9:5
b7449926
XL
3 |
4LL | 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
10note: required because it's used within this closure
11 --> $DIR/kindck-nonsendable-1.rs:9:9
12 |
13LL | bar(move|| foo(x));
14 | ^^^^^^^^^^^^^
94222f64
XL
15note: required by a bound in `bar`
16 --> $DIR/kindck-nonsendable-1.rs:5:21
17 |
18LL | fn bar<F:FnOnce() + Send>(_: F) { }
19 | ^^^^ required by this bound in `bar`
b7449926
XL
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0277`.