Sign in
android
/
toolchain
/
rustc
/
d59a28787b7ba06edbd1e4528a42b66d67dc6a19
/
.
/
src
/
test
/
ui
/
consts
/
issue-68542-closure-in-array-len.rs
blob: d77fd9aa831bee8973e35b7a2be7073299421150 [
file
] [
log
] [
blame
]
// Regression test for issue #68542
// Tests that we don't ICE when a closure appears
// in the length part of an array.
struct
Bug
{
a
:
[();
(||
{
0
})()]
//~ ERROR calls in constants are limited to
}
fn
main
()
{}