mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
8 lines
152 B
Rust
8 lines
152 B
Rust
const fn foo(a: i32) -> Vec<i32> {
|
|
vec![1, 2, 3]
|
|
//~^ ERROR allocations are not allowed
|
|
//~| ERROR cannot call non-const fn
|
|
}
|
|
|
|
fn main() {}
|