]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-bound-in-manual-copy-impl.stderr
Rollup merge of #107116 - ozkanonur:consolidate-bootstrap-docs, r=jyn514
[rust.git] / tests / ui / suggestions / missing-bound-in-manual-copy-impl.stderr
1 error[E0204]: the trait `Copy` may not be implemented for this type
2   --> $DIR/missing-bound-in-manual-copy-impl.rs:6:18
3    |
4 LL | struct Wrapper<T>(T);
5    |                   - this field does not implement `Copy`
6 LL |
7 LL | impl<S> Copy for Wrapper<S> {}
8    |                  ^^^^^^^^^^
9    |
10 help: consider restricting type parameter `S`
11    |
12 LL | impl<S: Copy> Copy for Wrapper<S> {}
13    |       ++++++
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0204`.