]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/associated-types-no-suitable-supertrait.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-no-suitable-supertrait.stderr
1 error[E0277]: the trait bound `(T, U): Get` is not satisfied
2 --> $DIR/associated-types-no-suitable-supertrait.rs:22:5
3 |
4 LL | fn uhoh<U:Get>(&self, foo: U, bar: <(T, U) as Get>::Value) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `(T, U)`
6
7 error[E0277]: the trait bound `Self: Get` is not satisfied
8 --> $DIR/associated-types-no-suitable-supertrait.rs:17:5
9 |
10 LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `Self`
12 |
13 help: consider further restricting `Self`
14 |
15 LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get {}
16 | +++++++++++++++
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0277`.