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