blob: d8ab95504823949c732a7381073a589470889ef3 [file] [log] [blame]
error[E0277]: the trait bound `<Self as SomeTrait>::Type1: std::marker::Copy` is not satisfied
--> $DIR/wf-trait-associated-type-trait.rs:11:5
|
LL | struct IsCopy<T:Copy> { x: T }
| --------------------- required by `IsCopy`
...
LL | type Type2 = IsCopy<Self::Type1>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `<Self as SomeTrait>::Type1`
|
= help: consider adding a `where <Self as SomeTrait>::Type1: std::marker::Copy` bound
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.