Files
rust/tests/ui/const-generics/generic_const_exprs
Jonathan Brouwer 11c2b5ae4c Rollup merge of #159850 - zakrad:regr-test-closure-array-len, r=tiif
Add regression test for closure in array-length const generic

Adds a regression test for rust-lang/rust#119316

The MCVE (a closure inside an array-length const in a generic async fn)
used to ICE with "expected type of closure to be a closure". It's since
been fixed and just emits ordinary errors now, so this adds a UI test to
lock that in.

Closes rust-lang/rust#119316
2026-07-29 14:10:35 +02:00
..
…