# Rust: loop with break

* loop
* break

* If we cannot have the condition at the top of the loop, in some languages we write `while true`. In Rust we use `loop`.
* We better have a condition with a `break` or we create an infinite loop!

{% embed include file="src/examples/loops/loop-loop/src/main.rs" %}


