Skip to content

Unit-like structs can mask constants #7044

Closed

Description

@sanxiyn
static X: int = 0;
struct X;
fn main() {}

Activity

  1. luqmana commented on Jun 10, 2013

    @luqmana
    Contributor

    Newtype structs as well.

  2. added a commit that references this issue on Jun 10, 2013
  3. added a commit that references this issue on Apr 8, 2021
  4. added a commit that references this issue on Aug 21, 2026
  5. added a commit that references this issue on Aug 29, 2026
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

    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions