]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
b7449926 1error[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
4LL | trait Get {
5 | --------- required by this bound in `Get`
6...
b7449926 7LL | 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 |
10help: consider further restricting `Self`
11 |
12LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get {}
13 | ^^^^^^^^^^^^^^^
b7449926
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.