]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-nonsendable-1.stderr
45c767fbe6c5d6fcfc6e926db14069fea7271be0
[rust.git] / src / test / ui / kindck / kindck-nonsendable-1.stderr
1 error[E0277]: `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    |     ^^^ ------------- within this `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:Rc<usize>]`
9    |     |
10    |     `Rc<usize>` cannot be sent between threads safely
11    |
12    = help: within `[closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:22 x:Rc<usize>]`, 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 x:Rc<usize>]`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.