Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
consts
/
const-expr-in-fixed-length-vec.rs
blob: a9960b4552b6e54f5f35985bd0964ab74d2b41de [
file
] [
log
] [
blame
]
// run-pass
// Check that constant expressions can be used for declaring the
// type of a fixed length vector.
// pretty-expanded FIXME #23616
pub
fn
main
()
{
const
FOO
:
usize
=
2
;
let
_v
:
[
isize
;
FOO
*
3
];
}