# Rust function return value (integer i32)


* return
* i32

* After an arrow `->` we can add the type of the return value.
* We can then return that value by using the `return` statement.
* `#[allow(clippy::needless_return)]` is there to silence clippy, the linter.

{% embed include file="src/examples/functions/return-integer/src/main.rs" %}


