fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `this` in this scope 2 --> $DIR/issue-5099.rs:3:9 3 | 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 | +++++ 45 46error: aborting due to 3 previous errors 47 48For more information about this error, try `rustc --explain E0425`.