Sign in
◑
Theme
rust
/
rust
/
8a7e1d75b2e2f4a2e89420130bca8d8d97f9074e
/
.
/
tests
/
ui
/
consts
/
issue-68542-closure-in-array-len.rs
blob: 37958e7919d64890ddfd2df5d5c9e1ec8949d513 [
file
]
// 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 cannot call non-const closure
}
fn
main
()
{}