]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.rs
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / consts / min_const_fn / bad_const_fn_body_ice.rs
1 const fn foo(a: i32) -> Vec<i32> {
2     vec![1, 2, 3]
3     //~^ ERROR allocations are not allowed
4     //~| ERROR calls in constant functions
5 }
6
7 fn main() {}