Rust : Solving `()` doesn't implement `std

Recently, I have started to learn Rust programming language and while making a simple example that uses a closure, I came across a compile error that was not very informative. It was telling me that `()` doesn't implement `std::fmt::Display`. This post will show the code causing the error, what the error means, and the solution to the error.