summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-add-self.rs
blob: 40692c8df2053524b9320a81c144d2b040929ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct X(i32);

impl X {
    pub(crate) fn f() {
        self.0
        //~^ ERROR expected value, found module `self`
    }

    pub fn g() {
        self.0
        //~^ ERROR expected value, found module `self`
    }
}

fn main() {}