]> git.lizzy.rs Git - rust.git/blob - tests/ui/kindck/kindck-send-object.stderr
Rollup merge of #106733 - DebugSteven:revert-104552-warn-newer-x, r=jyn514
[rust.git] / tests / ui / kindck / kindck-send-object.stderr
1 error[E0277]: `(dyn Dummy + 'static)` cannot be shared between threads safely
2   --> $DIR/kindck-send-object.rs:12:19
3    |
4 LL |     assert_send::<&'static (dyn Dummy + 'static)>();
5    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'static)` cannot be shared between threads safely
6    |
7    = help: the trait `Sync` is not implemented for `(dyn Dummy + 'static)`
8    = note: required for `&'static (dyn Dummy + 'static)` to implement `Send`
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`
14
15 error[E0277]: `dyn Dummy` cannot be sent between threads safely
16   --> $DIR/kindck-send-object.rs:17:19
17    |
18 LL |     assert_send::<Box<dyn Dummy>>();
19    |                   ^^^^^^^^^^^^^^ `dyn Dummy` cannot be sent between threads safely
20    |
21    = help: the trait `Send` is not implemented for `dyn Dummy`
22    = note: required for `Unique<dyn Dummy>` to implement `Send`
23    = note: required because it appears within the type `Box<dyn Dummy>`
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`
29
30 error: aborting due to 2 previous errors
31
32 For more information about this error, try `rustc --explain E0277`.