Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
inline-const
/
const-expr-generic-err2.rs
blob: e097cbe9dd6d1d3187c09a80b1eb78271f3fa425 [
file
] [
log
] [
blame
]
#![
feature
(
inline_const
)]
fn
foo
<
T
>()
{
let
_
=
[
0u8
;
const
{
std
::
mem
::
size_of
::<
T
>()
}];
//~^ ERROR: constant expression depends on a generic parameter
}
fn
main
()
{
foo
::<
i32
>();
}