mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-14 02:02:58 +00:00
Fix subslice capture in closure Fixes #109298 by refining captures in the same way for Subslices and Indexes. The comment `// we never capture this` seems to have been inaccurate, as changing it to an assert causes many test failures `@rustbot` label +A-closures