1 2 3 4 5 6 7 8 9 10 11 12
// issue#135863 struct A; impl A { fn len(self: &&A) {} } fn main() { A.len(); //~^ ERROR: no method named `len` found for struct `A` in the current scope }