]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_send-rc.stderr
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / no_send-rc.stderr
1 error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
2   --> $DIR/no_send-rc.rs:7:9
3    |
4 LL | fn bar<T: Send>(_: T) {}
5    |           ---- required by this bound in `bar`
6 ...
7 LL |     bar(x);
8    |         ^ `Rc<{integer}>` cannot be sent between threads safely
9    |
10    = help: the trait `Send` is not implemented for `Rc<{integer}>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.