From f98580a6812f5c5e813811001a1bec0805afad90 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 12 Oct 2024 14:03:54 +0200 Subject: [PATCH] Create a project for testing variables --- variables/Cargo.lock | 7 +++++++ variables/Cargo.toml | 6 ++++++ variables/src/main.rs | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 variables/Cargo.lock create mode 100644 variables/Cargo.toml create mode 100644 variables/src/main.rs diff --git a/variables/Cargo.lock b/variables/Cargo.lock new file mode 100644 index 0000000..a6daf1d --- /dev/null +++ b/variables/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "variables" +version = "0.1.0" diff --git a/variables/Cargo.toml b/variables/Cargo.toml new file mode 100644 index 0000000..4da3b81 --- /dev/null +++ b/variables/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "variables" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/variables/src/main.rs b/variables/src/main.rs new file mode 100644 index 0000000..a57709c --- /dev/null +++ b/variables/src/main.rs @@ -0,0 +1,6 @@ +fn main() { + let mut x = 5; + println!("The value of x is: {x}"); + x = 6; + println!("The value of x is: {x}"); +}