]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wf/wf-trait-associated-type-trait.stderr
93cb948cdbfcb0674080e6729f698e8c582110b7
[rustc.git] / src / test / ui / wf / wf-trait-associated-type-trait.stderr
1 error[E0277]: the trait bound `<Self as SomeTrait>::Type1: std::marker::Copy` is not satisfied
2 --> $DIR/wf-trait-associated-type-trait.rs:11:5
3 |
4 LL | struct IsCopy<T:Copy> { x: T }
5 | --------------------- required by `IsCopy`
6 LL |
7 LL | trait SomeTrait {
8 | - help: consider further restricting the associated type: `where <Self as SomeTrait>::Type1: std::marker::Copy`
9 LL | type Type1;
10 LL | type Type2 = IsCopy<Self::Type1>;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `<Self as SomeTrait>::Type1`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.