Add code for demonstrating loops

This commit is contained in:
Manuel Thalmann 2024-10-16 17:15:51 +02:00
parent 8b8e5ac817
commit fb1df42282
3 changed files with 18 additions and 0 deletions

7
loops/Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "loops"
version = "0.1.0"

6
loops/Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "loops"
version = "0.1.0"
edition = "2021"
[dependencies]

5
loops/src/main.rs Normal file
View file

@ -0,0 +1,5 @@
fn main() {
loop {
println!("again!");
}
}