]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-expr-in-fixed-length-vec.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-expr-in-fixed-length-vec.rs
1 // run-pass
2 // Check that constant expressions can be used for declaring the
3 // type of a fixed length vector.
4
5 // pretty-expanded FIXME #23616
6
7 pub fn main() {
8
9     const FOO: usize = 2;
10     let _v: [isize; FOO*3];
11
12 }