Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-29821.rs
blob: 508009337a5a5af55e190d4ec49c757860c11c6b [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{}