2024-11-25 18:30:13 +01:00
|
|
|
// Regression test for #129541
|
|
|
|
|
|
2025-01-20 16:42:50 +01:00
|
|
|
//@ revisions: unique multiple
|
2024-11-25 18:30:13 +01:00
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
|
|
trait Bound {}
|
|
|
|
|
trait Normalize {
|
|
|
|
|
type Assoc;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-20 16:42:50 +01:00
|
|
|
#[cfg(multiple)]
|
|
|
|
|
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() {}
|