]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `T: Get` is not satisfied |
f2b60f7d | 2 | --> $DIR/associated-types-no-suitable-bound.rs:11:5 |
b7449926 XL |
3 | | |
4 | LL | fn uhoh<T>(foo: <T as Get>::Value) {} | |
f2b60f7d | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `T` |
74b04a01 | 6 | | |
ba9703b0 | 7 | help: consider restricting type parameter `T` |
74b04a01 | 8 | | |
ba9703b0 | 9 | LL | fn uhoh<T: Get>(foo: <T as Get>::Value) {} |
94222f64 | 10 | | +++++ |
b7449926 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0277`. |