1 error[E0424]: expected value, found module `self`
5 | --- this function doesn't have a `self` parameter
7 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
9 help: add a `self` receiver parameter to make the associated `fn` a method
14 error[E0424]: expected value, found module `self`
15 --> $DIR/E0424.rs:11:9
18 | --- this function doesn't have a `self` parameter
20 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
22 help: add a `self` receiver parameter to make the associated `fn` a method
24 LL | fn baz(&self, _: i32) {
27 error[E0424]: expected value, found module `self`
28 --> $DIR/E0424.rs:15:20
31 | --- this function doesn't have a `self` parameter
32 LL | let _ = || self.bar();
33 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
35 help: add a `self` receiver parameter to make the associated `fn` a method
40 error[E0424]: expected unit struct, unit variant or constant, found module `self`
41 --> $DIR/E0424.rs:20:9
44 | ---- this function can't have a `self` parameter
45 LL | let self = "self";
46 | ^^^^ `self` value is a keyword and may not be bound to variables or shadowed
48 error: aborting due to 4 previous errors
50 For more information about this error, try `rustc --explain E0424`.