rust/tests/ui/traits/next-solver/normalize-param-env-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
286 B
Rust
Raw Normal View History

// check-pass
2023-12-14 06:11:28 -06:00
// compile-flags: -Znext-solver
// 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() {}