From e5dfc8eca1487befc8183c63c3555e26dd46e511 Mon Sep 17 00:00:00 2001 From: Aryankanani1 <156785356+Aryankanani1@users.noreply.github.com> Date: Fri, 16 Oct 2026 22:46:32 -0400 Subject: [PATCH] Fix compiler error by initializing variable 'x' Declare variable 'x' with type i32 and initialize it. --- exercises/01_variables/variables2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/01_variables/variables2.rs b/exercises/01_variables/variables2.rs index e2a360351a..43db02e3de 100644 --- a/exercises/01_variables/variables2.rs +++ b/exercises/01_variables/variables2.rs @@ -1,6 +1,6 @@ fn main() { // TODO: Change the line below to fix the compiler error. - let x; + let x: i32 = 10; if x == 10 { println!("x is ten!");