]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `Self: Get` is not satisfied |
136023e0 | 2 | --> $DIR/associated-types-no-suitable-supertrait-2.rs:17:40 |
b7449926 | 3 | | |
136023e0 XL |
4 | LL | trait Get { |
5 | | --------- required by this bound in `Get` | |
6 | ... | |
b7449926 | 7 | LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {} |
136023e0 | 8 | | ^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `Self` |
f9f354fc XL |
9 | | |
10 | help: consider further restricting `Self` | |
11 | | | |
12 | LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get {} | |
13 | | ^^^^^^^^^^^^^^^ | |
b7449926 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |