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
commit 9a82417a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() {}