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