]> git.proxmox.com Git - rustc.git/blob - src/test/ui/kindck/kindck-send-object1.nll.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / kindck / kindck-send-object1.nll.stderr
1 error[E0277]: `(dyn Dummy + 'a)` cannot be shared between threads safely
2 --> $DIR/kindck-send-object1.rs:10:5
3 |
4 LL | fn assert_send<T:Send+'static>() { }
5 | ---- required by this bound in `assert_send`
6 ...
7 LL | assert_send::<&'a dyn Dummy>();
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be shared between threads safely
9 |
10 = help: the trait `Sync` is not implemented for `(dyn Dummy + 'a)`
11 = note: required because of the requirements on the impl of `Send` for `&'a (dyn Dummy + 'a)`
12
13 error[E0277]: `(dyn Dummy + 'a)` cannot be sent between threads safely
14 --> $DIR/kindck-send-object1.rs:29:5
15 |
16 LL | fn assert_send<T:Send+'static>() { }
17 | ---- required by this bound in `assert_send`
18 ...
19 LL | assert_send::<Box<dyn Dummy + 'a>>();
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be sent between threads safely
21 |
22 = help: the trait `Send` is not implemented for `(dyn Dummy + 'a)`
23 = note: required because of the requirements on the impl of `Send` for `Unique<(dyn Dummy + 'a)>`
24 = note: required because it appears within the type `Box<(dyn Dummy + 'a)>`
25
26 error: aborting due to 2 previous errors
27
28 For more information about this error, try `rustc --explain E0277`.