summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-5099.rs
blob: b5abccb4b19f9c7a65de2c941b6612c2818dd039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait B <A> {
    fn a() -> A {
        this.a //~ ERROR cannot find value `this` in this scope
    }
    fn b(x: i32) {
        this.b(x); //~ ERROR cannot find value `this` in this scope
    }
    fn c() {
        let _ = || this.a; //~ ERROR cannot find value `this` in this scope
    }
}

fn main() {}