Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
associated-consts
/
associated-const.rs
blob: 2d9af05331d04a9a80b6a6870ebd75859ff279d4 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
trait
Foo
{
const
ID
:
i32
;
}
impl
Foo
for
i32
{
const
ID
:
i32
=
1
;
}
fn
main
()
{
assert_eq
!(
1
,
<
i32
as
Foo
>::
ID
);
}