]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43784-supertrait.stderr
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / test / ui / issues / 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`.