Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
const-generics
/
generic_const_exprs
/
associated-const.rs
blob: a6777632254b71e5ce5412a3719d2e55060220ea [
file
] [
log
] [
blame
]
// check-pass
struct
Foo
<
T
>(
T
);
impl
<
T
>
Foo
<
T
>
{
const
VALUE
:
usize
=
std
::
mem
::
size_of
::<
T
>();
}
fn
test
<
T
>()
{
let
_
=
[
0
;
Foo
::<
u8
>::
VALUE
];
}
fn
main
()
{}