Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
consts
/
min_const_fn
/
bad_const_fn_body_ice.rs
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
()
{}