// Test overloaded indexing combined with autoderef.
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
use std::ops::{Index, IndexMut};
struct Foo {
}
impl IndexMut<int> for Foo {
- type Output = int;
-
fn index_mut(&mut self, z: &int) -> &mut int {
if *z == 0 {
&mut self.x