5 fn take_mutably(&mut self) {}
8 fn identity<T>(t: T) -> T {
13 // Built-in indexing should be used even when the index is not
14 // trivially an integer
15 // Overloaded indexing would cause wrapped to be borrowed mutably
21 let wrapped = [&mut a1, &mut a2];
24 wrapped[0 + 1 - 1].take_mutably();
28 wrapped[identity(0)].take_mutably();