1error[E0624]: associated function `foo` is private 2 --> $DIR/private-impl-method.rs:20:7 3 | 4LL | fn foo(&self) {} 5 | ------------- private associated function defined here 6... 7LL | s.foo(); 8 | ^^^ private associated function 9 10error: aborting due to previous error 11 12For more information about this error, try `rustc --explain E0624`. 13