Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
const-generics
/
generic_const_exprs
/
auxiliary
/
const_evaluatable_lib.rs
blob: 9890e46e44530e5614f60291dd70c94e13a8c391 [
file
]
#![
feature
(
generic_const_exprs
)]
pub
fn
test1
<
T
>()
->
[
u8
;
std
::
mem
::
size_of
::<
T
>()
-
1
]
where
[
u8
;
std
::
mem
::
size_of
::<
T
>()
-
1
]:
Sized
,
{
[
0
;
std
::
mem
::
size_of
::<
T
>()
-
1
]
}