Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
const_evaluatable
/
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
()
{}