Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

self in self::SomeType points to type and root not file module #1386

@Xanewok

Description

@Xanewok

This happened when trying to reproduce #467.

enum MyEnum {
    VariantA,
}

fn main() {
    let _ = self::MyEnum::VariantA;
}

The self points to MyEnum::VariantA, which means that a VariantA -> VariantB changes it to

enum MyEnum {
    VariantB,
}

fn main() {
    let _ = VariantB::MyEnum::VariantB;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions