1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-03-23 21:29:42 +02:00

11 lines
190 B
Rust
Raw Normal View History

2015-09-16 20:19:24 -04:00
fn main() {
2024-05-21 01:47:57 +02:00
// TODO: Change the line below to fix the compiler error.
2015-09-16 20:19:24 -04:00
let x;
2024-05-21 01:47:57 +02:00
2015-09-16 20:19:24 -04:00
if x == 10 {
println!("x is ten!");
2015-09-16 20:19:24 -04:00
} else {
println!("x is not ten!");
2015-09-16 20:19:24 -04:00
}
}