fork/rust

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

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

master
791 B24 linesraw
1error[E0277]: the trait bound `T: Copy` is not satisfied
2  --> $DIR/issue-43784-supertrait.rs:8:22
3   |
4LL | impl<T> Complete for T {}
5   |                      ^ the trait `Copy` is not implemented for `T`
6   |
7note: required for `T` to implement `Partial`
8  --> $DIR/issue-43784-supertrait.rs:1:11
9   |
10LL | pub trait Partial: Copy {
11   |           ^^^^^^^
12note: required by a bound in `Complete`
13  --> $DIR/issue-43784-supertrait.rs:4:21
14   |
15LL | pub trait Complete: Partial {
16   |                     ^^^^^^^ required by this bound in `Complete`
17help: consider restricting type parameter `T`
18   |
19LL | impl<T: std::marker::Copy> Complete for T {}
20   |       +++++++++++++++++++
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0277`.