]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/bound_reduction2.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / bound_reduction2.stderr
CommitLineData
60c5eb7d 1error[E0277]: the trait bound `T: TraitWithAssoc` is not satisfied
f035d41b 2 --> $DIR/bound_reduction2.rs:10:15
60c5eb7d
XL
3 |
4LL | type Foo<V> = impl Trait<V>;
f035d41b 5 | ^^^^^^^^^^^^^ the trait `TraitWithAssoc` is not implemented for `T`
74b04a01 6 |
ba9703b0 7help: consider further restricting this bound
74b04a01 8 |
ba9703b0
XL
9LL | fn foo_desugared<T: TraitWithAssoc + TraitWithAssoc>(_: T) -> Foo<T::Assoc> {
10 | ^^^^^^^^^^^^^^^^
60c5eb7d 11
ba9703b0 12error: aborting due to previous error
8faf50e0 13
60c5eb7d 14For more information about this error, try `rustc --explain E0277`.