mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 12:18:33 +00:00
24 lines
307 B
Rust
24 lines
307 B
Rust
![]() |
// Regression test for #129541
|
||
|
|
||
|
//@ check-pass
|
||
|
|
||
|
trait Bound {}
|
||
|
trait Normalize {
|
||
|
type Assoc;
|
||
|
}
|
||
|
|
||
|
impl<T: Bound> Normalize for T {
|
||
|
type Assoc = T;
|
||
|
}
|
||
|
|
||
|
impl<T: Bound> Normalize for [T] {
|
||
|
type Assoc = T;
|
||
|
}
|
||
|
|
||
|
impl Bound for Hello {}
|
||
|
struct Hello {
|
||
|
a: <[Hello] as Normalize>::Assoc,
|
||
|
}
|
||
|
|
||
|
fn main() {}
|