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