summary refs log tree commit diff
path: root/src/test/ui/wf/wf-struct-bound.stderr
blob: 397d8609ceb056071e22128d162c74282a20f4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
  --> $DIR/wf-struct-bound.rs:19:1
   |
LL | / struct SomeStruct<T,U> //~ ERROR E0277
LL | |     where T: ExtraCopy<U>
LL | | {
LL | |     data: (T,U)
LL | | }
   | |_^ the trait `std::marker::Copy` is not implemented for `U`
   |
   = help: consider adding a `where U: std::marker::Copy` bound
note: required by `ExtraCopy`
  --> $DIR/wf-struct-bound.rs:17:1
   |
LL | trait ExtraCopy<T:Copy> { }
   | ^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.