mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
17 lines
238 B
Rust
17 lines
238 B
Rust
//@ known-bug: #134905
|
|
|
|
trait Iterate<'a> {
|
|
type Ty: Valid;
|
|
}
|
|
impl<'a, T> Iterate<'a> for T
|
|
where
|
|
T: Check,
|
|
{
|
|
default type Ty = ();
|
|
}
|
|
|
|
trait Check {}
|
|
impl<'a, T> Eq for T where <T as Iterate<'a>>::Ty: Valid {}
|
|
|
|
trait Valid {}
|