]> git.lizzy.rs Git - rust.git/blob - tests/ui/wf/wf-trait-associated-type-trait.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / 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 |     type Type2 = (IsCopy<Self::Type1>, bool);
5    |                   ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `<Self as SomeTrait>::Type1`
6    |
7 note: required by a bound in `IsCopy`
8   --> $DIR/wf-trait-associated-type-trait.rs:7:17
9    |
10 LL | struct IsCopy<T:Copy> { x: T }
11    |                 ^^^^ required by this bound in `IsCopy`
12 help: consider further restricting the associated type
13    |
14 LL | trait SomeTrait where <Self as SomeTrait>::Type1: Copy {
15    |                 ++++++++++++++++++++++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.