]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/bounds-are-checked-2.stderr
Merge tag 'debian/1.49.0+dfsg1-1_exp1' into debian/sid
[rustc.git] / src / test / ui / type-alias-impl-trait / bounds-are-checked-2.stderr
1 error[E0277]: the trait bound `T: Clone` is not satisfied
2 --> $DIR/bounds-are-checked-2.rs:6:13
3 |
4 LL | type X<T> = impl Clone;
5 | ^^^^^^^^^^ the trait `Clone` is not implemented for `T`
6 |
7 help: consider restricting type parameter `T`
8 |
9 LL | type X<T: Clone> = impl Clone;
10 | ^^^^^^^
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.