]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-no-suitable-bound.stderr
Rollup merge of #68984 - ecstatic-morse:const-u8-is-ascii, r=sfackler
[rust.git] / src / test / ui / associated-types / associated-types-no-suitable-bound.stderr
1 error[E0277]: the trait bound `T: Get` is not satisfied
2   --> $DIR/associated-types-no-suitable-bound.rs:11:5
3    |
4 LL |     fn uhoh<T>(foo: <T as Get>::Value) {}
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `T`
6    |
7 help: consider restricting this type parameter with `T: Get`
8   --> $DIR/associated-types-no-suitable-bound.rs:11:13
9    |
10 LL |     fn uhoh<T>(foo: <T as Get>::Value) {}
11    |             ^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.