Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
consts
/
const-expr-in-vec-repeat.rs
blob: e270d4c1eb3c189a8418519ce9db6aaefac0c02e [
file
] [
log
] [
blame
]
//@ run-pass
// Check that constant expressions can be used in vec repeat syntax.
pub
fn
main
()
{
const
FOO
:
usize
=
2
;
let
_v
=
[
0
;
FOO
*
3
*
2
/
2
];
}