]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/bounds-are-checked-2.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / 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:9:5
3    |
4 LL |     t
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`.