fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0277]: `(dyn Dummy + 'static)` cannot be shared between threads safely 2 --> $DIR/kindck-send-object.rs:12:5 3 | 4LL | fn assert_send<T:Send>() { } 5 | ----------- ---- required by this bound in `assert_send` 6... 7LL | assert_send::<&'static (dyn Dummy + 'static)>(); 8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'static)` cannot be shared between threads safely 9 | 10 = help: the trait `std::marker::Sync` is not implemented for `(dyn Dummy + 'static)` 11 = note: required because of the requirements on the impl of `std::marker::Send` for `&'static (dyn Dummy + 'static)` 12 13error[E0277]: `dyn Dummy` cannot be sent between threads safely 14 --> $DIR/kindck-send-object.rs:17:5 15 | 16LL | fn assert_send<T:Send>() { } 17 | ----------- ---- required by this bound in `assert_send` 18... 19LL | assert_send::<Box<dyn Dummy>>(); 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `dyn Dummy` cannot be sent between threads safely 21 | 22 = help: the trait `std::marker::Send` is not implemented for `dyn Dummy` 23 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dyn Dummy>` 24 = note: required because it appears within the type `std::boxed::Box<dyn Dummy>` 25 26error: aborting due to 2 previous errors 27 28For more information about this error, try `rustc --explain E0277`.