]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-call.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / consts / const-call.stderr
1 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2   --> $DIR/const-call.rs:6:17
3    |
4 LL |     let _ = [0; f(2)];
5    |                 ^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0015`.