Skip to content

Commit 9a82417

Browse files
Rollup merge of #81843 - bstrie:issue-29821, r=lcnr
Add regression test for #29821 Closes #29821
2 parents b2beb67 + d2a3c04 commit 9a82417

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/test/ui/issues/issue-29821.rs

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// build-pass
2+
3+
pub trait Foo {
4+
type FooAssoc;
5+
}
6+
7+
pub struct Bar<F: Foo> {
8+
id: F::FooAssoc
9+
}
10+
11+
pub struct Baz;
12+
13+
impl Foo for Baz {
14+
type FooAssoc = usize;
15+
}
16+
17+
static mut MY_FOO: Bar<Baz> = Bar { id: 0 };
18+
19+
fn main() {}

0 commit comments

Comments
 (0)