blob: 7d95417a6ffd97ed0deffc8d0788783684e487b6 [file] [log] [blame]
// build-fail
//~^ ERROR cycle detected when computing layout of `Foo<()>`
trait A { type Assoc: ?Sized; }
impl A for () {
type Assoc = Foo<()>;
}
struct Foo<T: A>(T::Assoc);
fn main() {
let x: Foo<()>;
}