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