about summary refs log tree commit diff
path: root/tests/ui/suggestions/double-reference-ty-in-self-ty.rs
blob: 4ac13f0f635d920ab4fb77976dae8df5eace3758 (plain)
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
}