mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
19 lines
227 B
Rust
19 lines
227 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() {}
|