Skip to content

Guessing Game Does Not Work On Current Release #99699

Closed as not planned
Closed as not planned
@dmccreary

Description

@dmccreary

Location

In the Rust Language Book, In Chapter 2, the guessing game does not work:

https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html#processing-a-guess

this line:

println!("You guessed: {guess}");

Generates the error:

error: there is no argument named guess

But this works:

println!("You guessed: {}", guess);

There is a similar problem with secret_number

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions