mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
27 lines
292 B
Rust
27 lines
292 B
Rust
// check-pass
|
|
// compile-flags: -Ztrait-solver=next
|
|
// Issue 92505
|
|
|
|
trait A<T> {
|
|
type I;
|
|
|
|
fn f()
|
|
where
|
|
Self::I: A<T>,
|
|
{
|
|
}
|
|
}
|
|
|
|
impl<T> A<T> for () {
|
|
type I = ();
|
|
|
|
fn f()
|
|
where
|
|
Self::I: A<T>,
|
|
{
|
|
<() as A<T>>::f();
|
|
}
|
|
}
|
|
|
|
fn main() {}
|