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 ```
12 lines
188 B
Rust
12 lines
188 B
Rust
//@ 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];
|
|
|
|
}
|