]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/issue-27675-unchecked-bounds.stderr
New upstream version 1.53.0+dfsg1
[rustc.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:31
3 |
4 LL | fn copy<U: Setup + ?Sized>(from: &U::From) -> U::From {
5 | ----- required by this bound in `copy`
6 ...
7 LL | copy::<dyn Setup<From=T>>(t)
8 | ^ the trait `Copy` is not implemented for `T`
9 |
10 help: consider restricting type parameter `T`
11 |
12 LL | pub fn copy_any<T: std::marker::Copy>(t: &T) -> T {
13 | ^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.