You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/hello_world.rs:4:39: 4:40 error: use of possibly uninitialized variable: `x`
501
+
src/hello_world.rs:4 println!("The value of x is: {}", x);
502
+
^
503
503
note: in expansion of format_args!
504
504
<std macros>:2:23: 2:77 note: expansion site
505
505
<std macros>:1:1: 3:2 note: in expansion of println!
506
-
src/guessing_game.rs:4:5: 4:42 note: expansion site
506
+
src/hello_world.rs:4:5: 4:42 note: expansion site
507
507
error: aborting due to previous error
508
-
Could not execute process `rustc src/guessing_game.rs --crate-type bin --out-dir /home/you/projects/guessing_game/target -L /home/you/projects/guessing_game/target -L /home/you/projects/guessing_game/target/deps` (status=101)
508
+
Could not execute process `rustc src/hello_world.rs --crate-type bin --out-dir /home/you/projects/hello_world/target -L /home/you/projects/hello_world/target -L /home/you/projects/hello_world/target/deps` (status=101)
509
509
```
510
510
511
511
Rust will not let us use a value that has not been initialized. So why let us
0 commit comments