]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/issue-43784-supertrait.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / traits / issue-43784-supertrait.stderr
1 error[E0277]: the trait bound `T: Copy` is not satisfied
2 --> $DIR/issue-43784-supertrait.rs:8:9
3 |
4 LL | impl<T> Complete for T {}
5 | ^^^^^^^^ the trait `Copy` is not implemented for `T`
6 |
7 note: required by a bound in `Complete`
8 --> $DIR/issue-43784-supertrait.rs:4:21
9 |
10 LL | pub trait Complete: Partial {
11 | ^^^^^^^ required by this bound in `Complete`
12 help: consider restricting type parameter `T`
13 |
14 LL | impl<T: std::marker::Copy> Complete for T {}
15 | +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.