]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/associated-types-no-suitable-supertrait-2.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-no-suitable-supertrait-2.stderr
1 error[E0277]: the trait bound `Self: Get` is not satisfied
2 --> $DIR/associated-types-no-suitable-supertrait-2.rs:17:40
3 |
4 LL | trait Get {
5 | --------- required by this bound in `Get`
6 ...
7 LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
8 | ^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `Self`
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 | ^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.