4196675f44
Fix panic with closure inside array len I was working on #15947 and found out that we panic on this test: ``` fn main() { let x = [(); &(&'static: loop { |x| {}; }) as *const _ as usize] } ``` This PR fixes the panic. Closures in array len are still broken, but closure in const eval is not stable anyway. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |