You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.rs:3:1: 3:25 error: the trait `core::kinds::Send` is not implemented for the type `Box<Foo+'static>`
test.rs:3 impl Foo for Box<Foo> {}
^~~~~~~~~~~~~~~~~~~~~~~~
test.rs:3:1: 3:25 note: the trait `core::kinds::Send` must be implemented because it is required by `Foo`
test.rs:3 impl Foo for Box<Foo> {}
^~~~~~~~~~~~~~~~~~~~~~~~
test.rs:7:5: 7:19 error: the trait `core::kinds::Send` is not implemented for the type `Bar`
test.rs:7 is_send::<Bar>()
^~~~~~~~~~~~~~
test.rs:7:5: 7:19 note: the trait `core::kinds::Send` must be implemented because it is required by `test::is_send`
test.rs:7 is_send::<Bar>()
^~~~~~~~~~~~~~
error: aborting due to previous error
The compiler correctly tracks the Send kind in other contexts. This properly compiles, for example:
or similarly
The compiler correctly tracks the
Send
kind in other contexts. This properly compiles, for example:The text was updated successfully, but these errors were encountered: