]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-5099.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / issue-5099.stderr
1 error[E0425]: cannot find value `this` in this scope
2   --> $DIR/issue-5099.rs:3:9
3    |
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    |          +++++
45
46 error: aborting due to 3 previous errors
47
48 For more information about this error, try `rustc --explain E0425`.