]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-fn-const-eval.rs
Rollup merge of #107004 - compiler-errors:new-solver-new-candidates-2, r=lcnr
[rust.git] / tests / 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() {}