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