1 error[E0425]: cannot find value `this` in this scope
2 --> $DIR/issue-5099.rs:3:9
5 | ^^^^ not found in this scope
7 help: you might have meant to use `self` here instead
11 help: if you meant to use `self`, you are also missing a `self` receiver argument
13 LL | fn a(&self) -> A {
16 error[E0425]: cannot find value `this` in this scope
17 --> $DIR/issue-5099.rs:6:9
20 | ^^^^ not found in this scope
22 help: you might have meant to use `self` here instead
26 help: if you meant to use `self`, you are also missing a `self` receiver argument
28 LL | fn b(&self, x: i32) {
31 error[E0425]: cannot find value `this` in this scope
32 --> $DIR/issue-5099.rs:9:20
34 LL | let _ = || this.a;
35 | ^^^^ not found in this scope
37 help: you might have meant to use `self` here instead
39 LL | let _ = || self.a;
41 help: if you meant to use `self`, you are also missing a `self` receiver argument
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0425`.