blob: ad47fcdb042caacc26cee45a5cc8f0b1674503da [file] [log] [blame]
error[E0277]: `<T as Trait>::AssocType` cannot be sent between threads safely
--> $DIR/typeck-default-trait-impl-assoc-type.rs:19:5
|
LL | is_send::<T::AssocType>(); //~ ERROR E0277
| ^^^^^^^^^^^^^^^^^^^^^^^ `<T as Trait>::AssocType` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<T as Trait>::AssocType`
= help: consider adding a `where <T as Trait>::AssocType: std::marker::Send` bound
note: required by `is_send`
--> $DIR/typeck-default-trait-impl-assoc-type.rs:22:1
|
LL | fn is_send<T:Send>() {
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.