3 #![feature(unsized_fn_params)]
10 impl ops::Index<str> for A {
12 fn index(&self, _: str) -> &Self::Output {
17 impl ops::IndexMut<str> for A {
18 fn index_mut(&mut self, _: str) -> &mut Self::Output {
25 let s = String::new().into_boxed_str();
26 assert_eq!(&(), a.index(*s));