blob: a88e0cc6017d3d8ecb30785828ddccb8639e4e89 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// 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
//~^ ERROR the trait bound
}
fn main() {}
|