Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
tests
/
ui
/
const-generics
/
generic_const_exprs
/
auxiliary
/
const_evaluatable_lib.rs
blob: 9890e46e44530e5614f60291dd70c94e13a8c391 [
file
] [
log
] [
blame
]
#![
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
]
}