Files
rustlings/exercises/01_variables/variables2.rs
Arthur DANJOU f4120eabdf Add initial solution files for Rustlings exercises and quizzes
- Created empty solution files for various exercises in strings, modules, hashmaps, options, error handling, generics, traits, lifetimes, tests, iterators, smart pointers, threads, macros, clippy, conversions, and quizzes.
- Each solution file contains a main function with a comment indicating that it will be automatically filled after completing the exercise.
- Added a README.md file to provide information about the solutions and their purpose.
2026-01-26 16:43:17 +01:00

11 lines
195 B
Rust

fn main() {
// TODO: Change the line below to fix the compiler error.
let x = 10;
if x == 10 {
println!("x is ten!");
} else {
println!("x is not ten!");
}
}