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