2025-09-15 21:24:57 +07:00
|
|
|
//~ ERROR reached the recursion limit finding the struct tail for `<[Hello] as Normalize>::Assoc`
|
2024-11-25 18:30:13 +01:00
|
|
|
// Regression test for #129541
|
|
|
|
|
|
2025-02-21 10:11:56 +01:00
|
|
|
//@ revisions: unique_curr unique_next multiple_curr multiple_next
|
|
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
|
|
|
//@[unique_next] compile-flags: -Znext-solver
|
|
|
|
|
//@[multiple_next] compile-flags: -Znext-solver
|
2024-11-25 18:30:13 +01:00
|
|
|
|
|
|
|
|
trait Bound {}
|
|
|
|
|
trait Normalize {
|
|
|
|
|
type Assoc;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-21 10:11:56 +01:00
|
|
|
#[cfg(any(multiple_curr, multiple_next))]
|
2025-01-20 16:42:50 +01:00
|
|
|
impl<T: Bound> Normalize for T {
|
|
|
|
|
type Assoc = T;
|
|
|
|
|
}
|
2024-11-25 18:30:13 +01:00
|
|
|
impl<T: Bound> Normalize for [T] {
|
|
|
|
|
type Assoc = T;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Bound for Hello {}
|
|
|
|
|
struct Hello {
|
|
|
|
|
a: <[Hello] as Normalize>::Assoc,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|