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 unit struct, unit variant or constant, found module `self`
28 --> $DIR/E0424.rs:16:9
31 | ---- this function can't have a `self` parameter
32 LL | let self = "self";
33 | ^^^^ `self` value is a keyword and may not be bound to variables or shadowed
35 error: aborting due to 3 previous errors
37 For more information about this error, try `rustc --explain E0424`.