]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-struct-field.stderr
Suggest boxing or borrowing unsized fields
[rust.git] / src / test / ui / wf / wf-struct-field.stderr
1 error[E0277]: the trait bound `A: std::marker::Copy` is not satisfied
2   --> $DIR/wf-struct-field.rs:12:11
3    |
4 LL | struct IsCopy<T:Copy> {
5    |                 ---- required by this bound in `IsCopy`
6 ...
7 LL |     data: IsCopy<A>
8    |           ^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `A`
9    |
10 help: consider restricting type parameter `A`
11    |
12 LL | struct SomeStruct<A: std::marker::Copy> {
13    |                    ^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.