1 error[E0424]: expected value, found module `self`
2 --> $DIR/suggest-add-self.rs:5:9
4 LL | pub(crate) fn f() {
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
11 LL | pub(crate) fn f(&self) {
14 error[E0424]: expected value, found module `self`
15 --> $DIR/suggest-add-self.rs:10: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 | pub fn g(&self) {
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0424`.