fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
512 B17 linesraw
1error[E0204]: the trait `Copy` cannot be implemented for this type
2  --> $DIR/missing-bound-in-manual-copy-impl.rs:6:18
3   |
4LL | struct Wrapper<T>(T);
5   |                   - this field does not implement `Copy`
6LL |
7LL | impl<S> Copy for Wrapper<S> {}
8   |                  ^^^^^^^^^^
9   |
10help: consider restricting type parameter `S`
11   |
12LL | impl<S: Copy> Copy for Wrapper<S> {}
13   |       ++++++
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0204`.