mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
23 lines
386 B
Rust
23 lines
386 B
Rust
// Regression test for #129541
|
|
//~^ ERROR cycle detected when computing layout of `<[Hello] as Normalize>::Assoc` [E0391]
|
|
|
|
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 {}
|
|
enum Hello {
|
|
Variant(<[Hello] as Normalize>::Assoc),
|
|
}
|
|
|
|
fn main() {}
|