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