mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Rollup merge of #81843 - bstrie:issue-29821, r=lcnr
Add regression test for #29821 Closes #29821
This commit is contained in:
commit
9a82417a85
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…
Reference in New Issue
Block a user