]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: `Rc<Foo>` cannot be sent between threads safely |
0731742a | 2 | --> $DIR/issue-40827.rs:14:5 |
0bf4aa26 | 3 | | |
e1599b0c | 4 | LL | fn f<T: Send>(_: T) {} |
ba9703b0 | 5 | | ---- required by this bound in `f` |
e1599b0c | 6 | ... |
0bf4aa26 | 7 | LL | f(Foo(Arc::new(Bar::B(None)))); |
1b1a35ee | 8 | | ^ `Rc<Foo>` cannot be sent between threads safely |
0bf4aa26 | 9 | | |
1b1a35ee | 10 | = help: within `Bar`, the trait `Send` is not implemented for `Rc<Foo>` |
0bf4aa26 | 11 | = note: required because it appears within the type `Bar` |
1b1a35ee | 12 | = note: required because of the requirements on the impl of `Send` for `Arc<Bar>` |
0bf4aa26 | 13 | = note: required because it appears within the type `Foo` |
0bf4aa26 | 14 | |
1b1a35ee | 15 | error[E0277]: `Rc<Foo>` cannot be shared between threads safely |
0731742a | 16 | --> $DIR/issue-40827.rs:14:5 |
0bf4aa26 | 17 | | |
e1599b0c | 18 | LL | fn f<T: Send>(_: T) {} |
ba9703b0 | 19 | | ---- required by this bound in `f` |
e1599b0c | 20 | ... |
0bf4aa26 | 21 | LL | f(Foo(Arc::new(Bar::B(None)))); |
1b1a35ee | 22 | | ^ `Rc<Foo>` cannot be shared between threads safely |
0bf4aa26 | 23 | | |
1b1a35ee | 24 | = help: within `Bar`, the trait `Sync` is not implemented for `Rc<Foo>` |
0bf4aa26 | 25 | = note: required because it appears within the type `Bar` |
1b1a35ee | 26 | = note: required because of the requirements on the impl of `Send` for `Arc<Bar>` |
0bf4aa26 | 27 | = note: required because it appears within the type `Foo` |
0bf4aa26 XL |
28 | |
29 | error: aborting due to 2 previous errors | |
30 | ||
31 | For more information about this error, try `rustc --explain E0277`. |