]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: `(dyn Dummy + 'static)` cannot be shared between threads safely |
f2b60f7d | 2 | --> $DIR/kindck-send-object.rs:12:19 |
b7449926 | 3 | | |
dc9dc135 | 4 | LL | 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 |
9 | note: required by a bound in `assert_send` |
10 | --> $DIR/kindck-send-object.rs:5:18 | |
11 | | | |
12 | LL | fn assert_send<T:Send>() { } | |
13 | | ^^^^ required by this bound in `assert_send` | |
b7449926 XL |
14 | |
15 | error[E0277]: `dyn Dummy` cannot be sent between threads safely | |
f2b60f7d | 16 | --> $DIR/kindck-send-object.rs:17:19 |
b7449926 | 17 | | |
dc9dc135 | 18 | LL | 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 |
24 | note: required by a bound in `assert_send` |
25 | --> $DIR/kindck-send-object.rs:5:18 | |
26 | | | |
27 | LL | fn assert_send<T:Send>() { } | |
28 | | ^^^^ required by this bound in `assert_send` | |
b7449926 XL |
29 | |
30 | error: aborting due to 2 previous errors | |
31 | ||
32 | For more information about this error, try `rustc --explain E0277`. |