parent
37d067f5d7
commit
d2a3c04c37
19
src/test/ui/issues/issue-29821.rs
Normal file
19
src/test/ui/issues/issue-29821.rs
Normal file
@ -0,0 +1,19 @@
|
||||
// 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() {}
|
Loading…
x
Reference in New Issue
Block a user