]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-call.rs
Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb
[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 }