Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
consts
/
const-expr-in-fixed-length-vec.rs
blob: f4d651af115408409aa478416fc542efb6efc442 [
file
] [
log
] [
blame
]
//@ run-pass
// Check that constant expressions can be used for declaring the
// type of a fixed length vector.
pub
fn
main
()
{
const
FOO
:
usize
=
2
;
let
_v
:
[
isize
;
FOO
*
3
];
}