Sign in
rust
/
rust
/
08cd08fbef8c6663b052d8d9e4930d5696cbb8a7
/
.
/
tests
/
ui
/
const-generics
/
generic_const_exprs
/
const-block-is-poly.rs
blob: 679f6b74bd1df3222caab35735aab7a11a949ad6 [
file
]
#![
feature
(
generic_const_exprs
)]
fn
foo
<
T
>()
{
let
_
=
[
0u8
;
{
const
{
std
::
mem
::
size_of
::<
T
>()
}
}];
//~^ ERROR: overly complex generic constant
}
fn
main
()
{
foo
::<
i32
>();
}