3 // Testing that method lookup does not automatically borrow
4 // vectors to slices then automatically create a self reference.
7 a.test_mut(); //~ ERROR no method named `test_mut` found
8 a.test(); //~ ERROR no method named `test` found
10 ([1]).test(); //~ ERROR no method named `test` found
11 (&[1]).test(); //~ ERROR no method named `test` found
15 fn test_mut(&mut self);
19 impl<'a> MyIter for &'a [isize] {
20 fn test_mut(&mut self) { }
24 impl<'a> MyIter for &'a str {
25 fn test_mut(&mut self) { }