]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-send-object2.stderr
Update ui tests
[rust.git] / src / test / ui / kindck / kindck-send-object2.stderr
1 error[E0277]: `(dyn Dummy + 'static)` cannot be shared between threads safely
2   --> $DIR/kindck-send-object2.rs:7:5
3    |
4 LL | fn assert_send<T:Send>() { }
5    |    -----------   ---- required by this bound in `assert_send`
6 ...
7 LL |     assert_send::<&'static dyn Dummy>();
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
13 error[E0277]: `dyn Dummy` cannot be sent between threads safely
14   --> $DIR/kindck-send-object2.rs:12:5
15    |
16 LL | fn assert_send<T:Send>() { }
17    |    -----------   ---- required by this bound in `assert_send`
18 ...
19 LL |     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
26 error: aborting due to 2 previous errors
27
28 For more information about this error, try `rustc --explain E0277`.