]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-struct-bound.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / wf / wf-struct-bound.stderr
1 error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2   --> $DIR/wf-struct-bound.rs:19:1
3    |
4 LL | / struct SomeStruct<T,U> //~ ERROR E0277
5 LL | |     where T: ExtraCopy<U>
6 LL | | {
7 LL | |     data: (T,U)
8 LL | | }
9    | |_^ the trait `std::marker::Copy` is not implemented for `U`
10    |
11    = help: consider adding a `where U: std::marker::Copy` bound
12 note: required by `ExtraCopy`
13   --> $DIR/wf-struct-bound.rs:17:1
14    |
15 LL | trait ExtraCopy<T:Copy> { }
16    | ^^^^^^^^^^^^^^^^^^^^^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.