From fb1df42282a5a84076372da1a055f8a7cf81c343 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 16 Oct 2024 17:15:51 +0200 Subject: [PATCH] Add code for demonstrating loops --- loops/Cargo.lock | 7 +++++++ loops/Cargo.toml | 6 ++++++ loops/src/main.rs | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 loops/Cargo.lock create mode 100644 loops/Cargo.toml create mode 100644 loops/src/main.rs diff --git a/loops/Cargo.lock b/loops/Cargo.lock new file mode 100644 index 0000000..4d2ad7f --- /dev/null +++ b/loops/Cargo.lock @@ -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" diff --git a/loops/Cargo.toml b/loops/Cargo.toml new file mode 100644 index 0000000..810e8bb --- /dev/null +++ b/loops/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "loops" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/loops/src/main.rs b/loops/src/main.rs new file mode 100644 index 0000000..f1692e4 --- /dev/null +++ b/loops/src/main.rs @@ -0,0 +1,5 @@ +fn main() { + loop { + println!("again!"); + } +}