]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5099.stderr
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / test / ui / issues / 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: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0425`.