]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/associated-types-no-suitable-supertrait.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / 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:40
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:40
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`.