error[E0603]: function `hello` is private
--> prog.rs:8:14
|
8 | greetings::hello();
| ^^^^^ private function
|
note: the function `hello` is defined here
--> prog.rs:2:3
|
2 | fn hello() {
| ^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0603`.