Rollup merge of #81843 - bstrie:issue-29821, r=lcnr

Add regression test for #29821

Closes #29821
This commit is contained in:
Guillaume Gomez
2021-02-07 14:45:56 +01:00
committed by GitHub
+19
View 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() {}