3 // rust-lang/rust#74933: Lifetime error when indexing with borrowed index
5 use std::ops::{Index, IndexMut};
11 impl<'a> Index<&'a K<'a>> for S {
14 fn index(&self, _: &'a K<'a>) -> &V {
19 impl<'a> IndexMut<&'a K<'a>> for S {
20 fn index_mut(&mut self, _: &'a K<'a>) -> &mut V {
29 fn test(s: &mut S, k: &K<'_>) {