]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-assoc-type.stderr
Rollup merge of #99227 - Lokathor:fix-thumbv4t-none-eabi-frame-pointer, r=davidtwco
[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:11:15
3    |
4 LL |     is_send::<T::AssocType>();
5    |               ^^^^^^^^^^^^ `<T as Trait>::AssocType` cannot be sent between threads safely
6    |
7    = help: the trait `Send` is not implemented for `<T as Trait>::AssocType`
8 note: required by a bound in `is_send`
9   --> $DIR/typeck-default-trait-impl-assoc-type.rs:14:14
10    |
11 LL | fn is_send<T:Send>() {
12    |              ^^^^ required by this bound in `is_send`
13 help: consider further restricting the associated type
14    |
15 LL | fn bar<T:Trait+Send>() where <T as Trait>::AssocType: Send {
16    |                        +++++++++++++++++++++++++++++++++++
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.