]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-projection-to-unrelated-trait-in-method-without-default.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `Self: Get` is not satisfied
f2b60f7d 2 --> $DIR/associated-types-projection-to-unrelated-trait-in-method-without-default.rs:10:5
b7449926
XL
3 |
4LL | fn okay<U:Get>(&self, foo: U, bar: <Self as Get>::Value);
f2b60f7d 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `Self`
f9f354fc
XL
6 |
7help: consider further restricting `Self`
8 |
9LL | fn okay<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get;
94222f64 10 | +++++++++++++++
b7449926
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.