const fn foo(a: i32) -> Vec { vec![1, 2, 3] //~^ ERROR allocations are not allowed //~| ERROR cannot call non-const fn } fn main() {}