rust/src/test/ui/kindck/kindck-nonsendable-1.stderr

16 lines
730 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0277]: `std::rc::Rc<usize>` cannot be sent between threads safely
2018-12-25 09:56:47 -06:00
--> $DIR/kindck-nonsendable-1.rs:9:5
2018-08-08 07:28:26 -05:00
|
LL | fn bar<F:FnOnce() + Send>(_: F) { }
| --- ---- required by this bound in `bar`
...
2018-08-08 07:28:26 -05:00
LL | bar(move|| foo(x));
| ^^^ `std::rc::Rc<usize>` cannot be sent between threads safely
|
2018-12-25 09:56:47 -06:00
= 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>`
= note: required because it appears within the type `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:std::rc::Rc<usize>]`
2018-08-08 07:28:26 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.