mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Rollup merge of #81843 - bstrie:issue-29821, r=lcnr
Add regression test for #29821 Closes #29821
This commit is contained in:
@@ -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() {}
|
||||
Reference in New Issue
Block a user