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