Sign in
android
/
toolchain
/
rustc
/
43f0694b1feb1296004d84509e01177159e71be0
/
.
/
src
/
test
/
ui
/
associated-consts
/
associated-const-use-default.rs
blob: adf36b1fff2662c4a3de5e21960f217418754d6e [
file
] [
log
] [
blame
]
// run-pass
trait
Foo
{
const
ID
:
i32
=
1
;
}
impl
Foo
for
i32
{}
fn
main
()
{
assert_eq
!(
1
,
<
i32
as
Foo
>::
ID
);
}