]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied |
74b04a01 | 2 | --> $DIR/wf-inherent-impl-where-clause.rs:11:29 |
b7449926 | 3 | | |
74b04a01 XL |
4 | LL | trait ExtraCopy<T:Copy> { } |
5 | | ----------------------- required by `ExtraCopy` | |
e1599b0c | 6 | ... |
74b04a01 XL |
7 | LL | impl<T,U> Foo<T,U> where T: ExtraCopy<U> |
8 | | ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `U` | |
9 | | | |
10 | help: consider restricting this type parameter with `where U: std::marker::Copy` | |
11 | --> $DIR/wf-inherent-impl-where-clause.rs:11:8 | |
12 | | | |
13 | LL | impl<T,U> Foo<T,U> where T: ExtraCopy<U> | |
14 | | ^ | |
b7449926 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0277`. |