blob: 4e1b7bf119c6d4b0398323a45de08b7a7672c2c7 [file] [log] [blame]
const fn foo(a: i32) -> Vec<i32> {
vec![1, 2, 3]
//~^ ERROR allocations are not allowed
//~| ERROR calls in constant functions
}
fn main() {}