mirror of https://github.com/rust-lang/rust
62 lines
2.5 KiB
Plaintext
62 lines
2.5 KiB
Plaintext
error[E0277]: the trait bound `(T, U): Get` is not satisfied
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:23:5
|
|
|
|
|
LL | fn uhoh<U:Get>(&self, foo: U, bar: <(T, U) as Get>::Value) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `(T, U)`
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:12:1
|
|
|
|
|
LL | trait Get {
|
|
| ^^^^^^^^^
|
|
|
|
error[E0277]: the trait bound `(T, U): Get` is not satisfied
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:23:40
|
|
|
|
|
LL | fn uhoh<U:Get>(&self, foo: U, bar: <(T, U) as Get>::Value) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `(T, U)`
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:12:1
|
|
|
|
|
LL | trait Get {
|
|
| ^^^^^^^^^
|
|
|
|
error[E0277]: the trait bound `Self: Get` is not satisfied
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:17:40
|
|
|
|
|
LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `Get` is not implemented for `Self`
|
|
|
|
|
help: consider further restricting `Self`
|
|
|
|
|
LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get {}
|
|
| +++++++++++++++
|
|
|
|
error[E0277]: the trait bound `Self: Get` is not satisfied
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:17:62
|
|
|
|
|
LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
|
|
| ^^ the trait `Get` is not implemented for `Self`
|
|
|
|
|
help: consider further restricting `Self`
|
|
|
|
|
LL | fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get {}
|
|
| +++++++++++++++
|
|
|
|
error[E0277]: the trait bound `(T, U): Get` is not satisfied
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:23:64
|
|
|
|
|
LL | fn uhoh<U:Get>(&self, foo: U, bar: <(T, U) as Get>::Value) {}
|
|
| ^^ the trait `Get` is not implemented for `(T, U)`
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
--> $DIR/associated-types-no-suitable-supertrait.rs:12:1
|
|
|
|
|
LL | trait Get {
|
|
| ^^^^^^^^^
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|