mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
45fcb6fd7c
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