//@ check-pass //@ revisions: current next //@[next] compile-flags: -Znext-solver // Regression test for nalgebra hang from // https://github.com/rust-lang/rust/pull/130654#issuecomment-2365465354 trait HasAlias {} struct Dummy; trait DummyTrait { type DummyType; } impl DummyTrait for Dummy { type DummyType = T; } type AliasOf = ::DummyType; struct Matrix(T, S); type OMatrix = Matrix>; impl HasAlias for OMatrix {} trait SimdValue { type Element; } impl> SimdValue for OMatrix { type Element = OMatrix; } trait Unimplemented {} pub trait MyFrom {} impl MyFrom for T {} impl> MyFrom for OMatrix {} fn main() {}