Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
test
/
ui
/
consts
/
min_const_fn
/
bad_const_fn_body_ice.rs
blob: 589085871fba967c9958dd19b2c5d5d01b23f2bd [
file
] [
log
] [
blame
]
const
fn
foo
(
a
:
i32
)
->
Vec
<
i32
>
{
vec
![
1
,
2
,
3
]
//~^ ERROR allocations are not allowed
//~| ERROR unimplemented expression type
//~| ERROR calls in constant functions
}
fn
main
()
{}