Create a project for testing variables

This commit is contained in:
Manuel Thalmann 2024-10-12 14:03:54 +02:00
parent 21a351914f
commit f98580a681
3 changed files with 19 additions and 0 deletions

7
variables/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 = "variables"
version = "0.1.0"

6
variables/Cargo.toml Normal file
View file

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

6
variables/src/main.rs Normal file
View file

@ -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}");
}