]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-no-suitable-bound.stderr
Rollup merge of #99880 - compiler-errors:escape-ascii-is-not-exact-size-iterator...
[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 type parameter `T`
8    |
9 LL |     fn uhoh<T: Get>(foo: <T as Get>::Value) {}
10    |              +++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.