# Function in the main.rs file

* We already know that we can define functions in the `main.rs` file and call them.

{% embed include file="src/examples/modules/function-in-main/src/main.rs" %}
{% embed include file="src/examples/modules/function-in-main/out.out" %}


