fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0424]: expected value, found module `self` 2 --> $DIR/E0424.rs:7:9 3 | 4LL | fn foo() { 5 | --- this function doesn't have a `self` parameter 6LL | self.bar(); 7 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter 8 | 9help: add a `self` receiver parameter to make the associated `fn` a method 10 | 11LL | fn foo(&self) { 12 | +++++ 13 14error[E0424]: expected value, found module `self` 15 --> $DIR/E0424.rs:11:9 16 | 17LL | fn baz(_: i32) { 18 | --- this function doesn't have a `self` parameter 19LL | self.bar(); 20 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter 21 | 22help: add a `self` receiver parameter to make the associated `fn` a method 23 | 24LL | fn baz(&self, _: i32) { 25 | ++++++ 26 27error[E0424]: expected value, found module `self` 28 --> $DIR/E0424.rs:15:20 29 | 30LL | fn qux() { 31 | --- this function doesn't have a `self` parameter 32LL | let _ = || self.bar(); 33 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter 34 | 35help: add a `self` receiver parameter to make the associated `fn` a method 36 | 37LL | fn qux(&self) { 38 | +++++ 39 40error[E0424]: expected unit struct, unit variant or constant, found module `self` 41 --> $DIR/E0424.rs:20:9 42 | 43LL | fn main () { 44 | ---- this function can't have a `self` parameter 45LL | let self = "self"; 46 | ^^^^ `self` value is a keyword and may not be bound to variables or shadowed 47 48error: aborting due to 4 previous errors 49 50For more information about this error, try `rustc --explain E0424`.