code
code copied to clipboard
Chapter 5 listing 5.4 ch5/ch5-bit-pattern.rs doesn't compile
The listing defines variables like sixtyfivethousand_533
, but references non existent variables sixty5_533
and so on.
$ rustc -O ch5-bit-patterns.rs
error[E0425]: cannot find value `sixty5_533` in this scope
--> main.rs:11:28
|
11 | println!("{}, {}, {}", sixty5_533, sixty5_534, sixty5_535);
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `sixty5_534` in this scope
--> main.rs:11:40
|
11 | println!("{}, {}, {}", sixty5_533, sixty5_534, sixty5_535);
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `sixty5_535` in this scope
--> main.rs:11:52
|
11 | println!("{}, {}, {}", sixty5_533, sixty5_534, sixty5_535);
| ^^^^^^^^^^ not found in this scope
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0425`.