]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_send-rc.stderr
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
[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 |     bar(x);
5    |     --- ^ `Rc<{integer}>` cannot be sent between threads safely
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: the trait `Send` is not implemented for `Rc<{integer}>`
10 note: required by a bound in `bar`
11   --> $DIR/no_send-rc.rs:3:11
12    |
13 LL | fn bar<T: Send>(_: T) {}
14    |           ^^^^ required by this bound in `bar`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.