Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
const-generics
/
generic_const_exprs
/
const-block-is-poly.rs
blob: 7332a8f03c05ff31670e21e8eaf6a7f409884d2c [
file
] [
log
] [
blame
]
#![
feature
(
inline_const
,
generic_const_exprs
)]
//~^ WARN the feature `generic_const_exprs` is incomplete
fn
foo
<
T
>()
{
let
_
=
[
0u8
;
const
{
std
::
mem
::
size_of
::<
T
>()
}];
//~^ ERROR: overly complex generic constant
}
fn
main
()
{
foo
::<
i32
>();
}