]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wf/wf-enum-bound.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / wf / wf-enum-bound.stderr
1 error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2 --> $DIR/wf-enum-bound.rs:10:14
3 |
4 LL | trait ExtraCopy<T:Copy> { }
5 | ----------------------- required by `ExtraCopy`
6 ...
7 LL | 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-enum-bound.rs:9:17
12 |
13 LL | enum SomeEnum<T,U>
14 | ^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.