blob: 347c50e1e3b616af066961c427d6c651cfec7a01 [file]
//! Regression test for https://github.com/rust-lang/rust/issues/29821
//!
//@ build-pass
pub trait Foo {
type FooAssoc;
}
pub struct Bar<F: Foo> {
id: F::FooAssoc,
}
pub struct Baz;
impl Foo for Baz {
type FooAssoc = usize;
}
static mut MY_FOO: Bar<Baz> = Bar { id: 0 };
fn main() {}