]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5099.rs
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / ui / issues / issue-5099.rs
1 trait B <A> {
2     fn a() -> A {
3         this.a //~ ERROR cannot find value `this` in this scope
4     }
5     fn b(x: i32) {
6         this.b(x); //~ ERROR cannot find value `this` in this scope
7     }
8     fn c() {
9         let _ = || this.a; //~ ERROR cannot find value `this` in this scope
10     }
11 }
12
13 fn main() {}