]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0425]: cannot find value `this` in this scope |
72b1a166 | 2 | --> $DIR/issue-5099.rs:3:9 |
8faf50e0 | 3 | | |
72b1a166 FG |
4 | LL | this.a |
5 | | ^^^^ not found in this scope | |
6 | | | |
7 | help: you might have meant to use `self` here instead | |
8 | | | |
9 | LL | self.a | |
10 | | ^^^^ | |
11 | help: if you meant to use `self`, you are also missing a `self` receiver argument | |
12 | | | |
13 | LL | fn a(&self) -> A { | |
14 | | ^^^^^ | |
15 | ||
16 | error[E0425]: cannot find value `this` in this scope | |
17 | --> $DIR/issue-5099.rs:6:9 | |
18 | | | |
19 | LL | this.b(x); | |
20 | | ^^^^ not found in this scope | |
21 | | | |
22 | help: you might have meant to use `self` here instead | |
23 | | | |
24 | LL | self.b(x); | |
25 | | ^^^^ | |
26 | help: if you meant to use `self`, you are also missing a `self` receiver argument | |
27 | | | |
28 | LL | fn b(&self, x: i32) { | |
29 | | ^^^^^^ | |
30 | ||
31 | error[E0425]: cannot find value `this` in this scope | |
32 | --> $DIR/issue-5099.rs:9:20 | |
33 | | | |
34 | LL | let _ = || this.a; | |
35 | | ^^^^ not found in this scope | |
36 | | | |
37 | help: you might have meant to use `self` here instead | |
38 | | | |
39 | LL | let _ = || self.a; | |
40 | | ^^^^ | |
41 | help: if you meant to use `self`, you are also missing a `self` receiver argument | |
42 | | | |
43 | LL | fn c(&self) { | |
44 | | ^^^^^ | |
8faf50e0 | 45 | |
72b1a166 | 46 | error: aborting due to 3 previous errors |
8faf50e0 XL |
47 | |
48 | For more information about this error, try `rustc --explain E0425`. |