]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-27675-unchecked-bounds.stderr
Rollup merge of #105976 - jyn514:unused-make-targets, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / issue-27675-unchecked-bounds.stderr
1 error[E0277]: the trait bound `T: Copy` is not satisfied
2   --> $DIR/issue-27675-unchecked-bounds.rs:15:12
3    |
4 LL |     copy::<dyn Setup<From=T>>(t)
5    |            ^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
6    |
7 note: required by a bound in `copy`
8   --> $DIR/issue-27675-unchecked-bounds.rs:10:12
9    |
10 LL | fn copy<U: Setup + ?Sized>(from: &U::From) -> U::From {
11    |            ^^^^^ required by this bound in `copy`
12 help: consider restricting type parameter `T`
13    |
14 LL | pub fn copy_any<T: std::marker::Copy>(t: &T) -> T {
15    |                  +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.