]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-nonsendable-1.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.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:20:5
3    |
4 LL |     bar(move|| foo(x));
5    |     ^^^ `std::rc::Rc<usize>` cannot be sent between threads safely
6    |
7    = help: within `[closure@$DIR/kindck-nonsendable-1.rs:20:9: 20:22 x:std::rc::Rc<usize>]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<usize>`
8    = note: required because it appears within the type `[closure@$DIR/kindck-nonsendable-1.rs:20:9: 20:22 x:std::rc::Rc<usize>]`
9 note: required by `bar`
10   --> $DIR/kindck-nonsendable-1.rs:16:1
11    |
12 LL | fn bar<F:FnOnce() + Send>(_: F) { }
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.