]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-call.rs
Rollup merge of #107004 - compiler-errors:new-solver-new-candidates-2, r=lcnr
[rust.git] / tests / ui / consts / const-call.rs
1 fn f(x: usize) -> usize {
2     x
3 }
4
5 fn main() {
6     let _ = [0; f(2)];
7     //~^ ERROR cannot call non-const fn
8 }