]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-call.rs
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / 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 calls in constants are limited to constant functions
8 }