]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-fn-const-eval.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-fn-const-eval.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 const fn add(x: usize, y: usize) -> usize {
5     x + y
6 }
7
8 const ARR: [i32; add(1, 2)] = [5, 6, 7];
9
10 pub fn main() {}