error[E0424]: expected value, found module `self` --> $DIR/E0424.rs:17:9 | LL | self.bar(); //~ ERROR E0424 | ^^^^ `self` value is only available in methods with `self` parameter error: aborting due to previous error For more information about this error, try `rustc --explain E0424`.