]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-assoc-type.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / typeck / typeck-default-trait-impl-assoc-type.stderr
1 error[E0277]: `<T as Trait>::AssocType` cannot be sent between threads safely
2   --> $DIR/typeck-default-trait-impl-assoc-type.rs:19:5
3    |
4 LL |     is_send::<T::AssocType>(); //~ ERROR E0277
5    |     ^^^^^^^^^^^^^^^^^^^^^^^ `<T as Trait>::AssocType` cannot be sent between threads safely
6    |
7    = help: the trait `std::marker::Send` is not implemented for `<T as Trait>::AssocType`
8    = help: consider adding a `where <T as Trait>::AssocType: std::marker::Send` bound
9 note: required by `is_send`
10   --> $DIR/typeck-default-trait-impl-assoc-type.rs:22:1
11    |
12 LL | fn is_send<T:Send>() {
13    | ^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.