]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-no-suitable-supertrait.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / associated-types / associated-types-no-suitable-supertrait.stderr
1 error[E0277]: the trait bound `Self: Get` is not satisfied
2   --> $DIR/associated-types-no-suitable-supertrait.rs:27:5
3    |
4 LL |     fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `Self`
6    |
7    = help: consider adding a `where Self: Get` bound
8
9 error[E0277]: the trait bound `(T, U): Get` is not satisfied
10   --> $DIR/associated-types-no-suitable-supertrait.rs:32:5
11    |
12 LL |     fn uhoh<U:Get>(&self, foo: U, bar: <(T, U) as Get>::Value) {}
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `(T, U)`
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0277`.