v.slice*()
&v[a..b]
as_slice()
still in scope". This issue was fixed by PR #12828 and #5781. All that was left was to add tests. Closes #12223.