]> git.proxmox.com Git - rustc.git/blob - src/test/ui/kindck/kindck-nonsendable-1.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / kindck / kindck-nonsendable-1.stderr
1 error[E0277]: `std::rc::Rc<usize>` cannot be sent between threads safely
2 --> $DIR/kindck-nonsendable-1.rs:9:5
3 |
4 LL | fn bar<F:FnOnce() + Send>(_: F) { }
5 | --- ---- required by this bound in `bar`
6 ...
7 LL | bar(move|| foo(x));
8 | ^^^ `std::rc::Rc<usize>` cannot be sent between threads safely
9 |
10 = help: within `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:std::rc::Rc<usize>]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<usize>`
11 = note: required because it appears within the type `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:std::rc::Rc<usize>]`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.