]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-inherent-impl-where-clause.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / wf / wf-inherent-impl-where-clause.stderr
CommitLineData
b7449926 1error[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
4LL | trait ExtraCopy<T:Copy> { }
5 | ----------------------- required by `ExtraCopy`
e1599b0c 6...
74b04a01
XL
7LL | impl<T,U> Foo<T,U> where T: ExtraCopy<U>
8 | ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `U`
9 |
10help: consider restricting this type parameter with `where U: std::marker::Copy`
11 --> $DIR/wf-inherent-impl-where-clause.rs:11:8
12 |
13LL | impl<T,U> Foo<T,U> where T: ExtraCopy<U>
14 | ^
b7449926
XL
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0277`.