Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
consts
/
min_const_fn
/
bad_const_fn_body_ice.rs
blob: 3e42cb8c1b07480bb57ea6e5f5f854626b6c68b3 [
file
] [
log
] [
blame
]
const
fn
foo
(
a
:
i32
)
->
Vec
<
i32
>
{
vec
![
1
,
2
,
3
]
//~ ERROR heap allocations are not allowed in const fn
}
fn
main
()
{}