Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-expr-in-fixed-length-vec.rs
blob: 60b4895f5f97b58ba21a86097bbda8052dad770a [
file
] [
log
] [
blame
] [
edit
]
//@ 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
];
}