summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-expr-in-fixed-length-vec.rs
blob: a9960b4552b6e54f5f35985bd0964ab74d2b41de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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];

}