| error[E0277]: the trait bound `(): Valid` is not satisfied |
| --> $DIR/fuzzing-ice-134905.rs:12:23 |
| | |
| LL | default type Ty = (); |
| | ^^ the trait `Valid` is not implemented for `()` |
| | |
| help: this trait has no implementations, consider adding one |
| --> $DIR/fuzzing-ice-134905.rs:20:1 |
| | |
| LL | trait Valid {} |
| | ^^^^^^^^^^^ |
| note: required by a bound in `Iterate::Ty` |
| --> $DIR/fuzzing-ice-134905.rs:6:14 |
| | |
| LL | trait Iterate<'a> { |
| LL | type Ty: Valid; |
| | ^^^^^ required by this bound in `Iterate::Ty` |
| |
| error[E0210]: type parameter `T` must be used as an argument to some local type (e.g., `MyStruct<T>`) |
| --> $DIR/fuzzing-ice-134905.rs:17:10 |
| | |
| LL | impl<'a, T> Eq for T where <T as Iterate<'a>>::Ty: Valid {} |
| | ^ uncovered type parameter |
| | |
| = note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local |
| = note: only traits defined in the current crate can be implemented for a type parameter |
| |
| error: aborting due to 2 previous errors |
| |
| Some errors have detailed explanations: E0210, E0277. |
| For more information about an error, try `rustc --explain E0210`. |