]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/bounds-are-checked-2.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.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: std::clone::Clone> = impl Clone;
10    |         +++++++++++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.