Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
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
];
}