]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-send-object1.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / kindck / kindck-send-object1.nll.stderr
1 error[E0277]: `(dyn Dummy + 'a)` cannot be shared between threads safely
2   --> $DIR/kindck-send-object1.rs:20:5
3    |
4 LL |     assert_send::<&'a Dummy>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be shared between threads safely
6    |
7    = help: the trait `std::marker::Sync` is not implemented for `(dyn Dummy + 'a)`
8    = note: required because of the requirements on the impl of `std::marker::Send` for `&'a (dyn Dummy + 'a)`
9 note: required by `assert_send`
10   --> $DIR/kindck-send-object1.rs:15:1
11    |
12 LL | fn assert_send<T:Send+'static>() { }
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error[E0277]: `(dyn Dummy + 'a)` cannot be sent between threads safely
16   --> $DIR/kindck-send-object1.rs:39:5
17    |
18 LL |     assert_send::<Box<Dummy+'a>>();
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be sent between threads safely
20    |
21    = help: the trait `std::marker::Send` is not implemented for `(dyn Dummy + 'a)`
22    = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn Dummy + 'a)>`
23    = note: required because it appears within the type `std::boxed::Box<(dyn Dummy + 'a)>`
24 note: required by `assert_send`
25   --> $DIR/kindck-send-object1.rs:15:1
26    |
27 LL | fn assert_send<T:Send+'static>() { }
28    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29
30 error: aborting due to 2 previous errors
31
32 For more information about this error, try `rustc --explain E0277`.