Skip to content

Commit d2a3c04

Browse files
committed
Add regression test for #29821
Closes #29821
1 parent 37d067f commit d2a3c04

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)