blob: ae6f4da5c6c709c9659f531d8adae7da1ad10267 [file] [edit]
//@ known-bug: #151069
trait Trait {
type Assoc2;
}
struct Bar;
impl Trait for Bar
where
<Bar as Trait>::Assoc2: Trait,
{
type Assoc2 = ();
}
struct Foo {
field: <Bar as Trait>::Assoc2,
}
static FOO2: &Foo = 0;
fn main() {}