]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-40827.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-40827.stderr
CommitLineData
1b1a35ee 1error[E0277]: `Rc<Foo>` cannot be sent between threads safely
0731742a 2 --> $DIR/issue-40827.rs:14:5
0bf4aa26 3 |
e1599b0c 4LL | fn f<T: Send>(_: T) {}
ba9703b0 5 | ---- required by this bound in `f`
e1599b0c 6...
0bf4aa26 7LL | 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 15error[E0277]: `Rc<Foo>` cannot be shared between threads safely
0731742a 16 --> $DIR/issue-40827.rs:14:5
0bf4aa26 17 |
e1599b0c 18LL | fn f<T: Send>(_: T) {}
ba9703b0 19 | ---- required by this bound in `f`
e1599b0c 20...
0bf4aa26 21LL | 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
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0277`.