Skip to content

Chapter 5 listing 5.4 ch5/ch5-bit-pattern.rs doesn't compile  #94

@bgigous

Description

@bgigous

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`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions