summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-fn-const-eval.rs
blob: d4da990812e35963aac052aebefcb9aa952429c8 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
#![allow(dead_code)]

const fn add(x: usize, y: usize) -> usize {
    x + y
}

const ARR: [i32; add(1, 2)] = [5, 6, 7];

pub fn main() {}