Sign in
rust
/
rust
/
refs/heads/cargo_update
/
.
/
tests
/
ui
/
const-generics
/
generic_const_exprs
/
const-block-is-poly.rs
blob: a6988a492f61414bd8077a613a2fe4fe225cb632 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
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
>();
}