]> git.proxmox.com Git - rustc.git/blame - src/test/ui/kindck/kindck-nonsendable-1.stderr
New upstream version 1.55.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 3 |
e1599b0c 4LL | fn bar<F:FnOnce() + Send>(_: F) { }
ba9703b0 5 | ---- required by this bound in `bar`
e1599b0c 6...
b7449926 7LL | 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
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.