d2a3c04c37
Closes #29821
20 lines
226 B
Rust
20 lines
226 B
Rust
// 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() {}
|