Skip to content

variable_bindings/declare.md: Contradictory statements about uninitialized variables. #1900

Description

@zanedp

It says not initializing a variable when it's declared may lead to use of uninitialized variables, but the sentence after the example says the compiler forbids the use of an uninitialized variable. If the compiler forbids using uninitialized variables, it's not possible to use an uninitialized variable.

The part saying this form is seldom used because it could lead to the use of uninitialized variables should be removed, since it's not possible in Rust.

Activity

  1. added a commit that references this issue on Dec 5, 2024
    ecd5114
  2. added a commit that references this issue on Dec 7, 2024
    7640633
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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