mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 20:47:36 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
11 lines
159 B
Rust
11 lines
159 B
Rust
//@ 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];
|
|
|
|
}
|