]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.stderr
Rollup merge of #107531 - GuillaumeGomez:inline-images-in-css, r=notriddle
[rust.git] / tests / ui / associated-types / associated-types-projection-to-unrelated-trait-in-method-without-default.stderr
1 error[E0277]: the trait bound `Self: Get` is not satisfied
2   --> $DIR/associated-types-projection-to-unrelated-trait-in-method-without-default.rs:10:40
3    |
4 LL |     fn okay<U:Get>(&self, foo: U, bar: <Self as Get>::Value);
5    |                                        ^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `Self`
6    |
7 help: consider further restricting `Self`
8    |
9 LL |     fn okay<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get;
10    |                                                              +++++++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.