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