Skip to content

Regression with type parameter shadowing #32639

Closed
@alexcrichton

Description

@alexcrichton

The following code compiles on stable/beta but fails to compile on nightly

pub enum T {       
    NonSpecific,   
}                  

fn foo<T>() {      
    T::NonSpecific;
}                  

This is minimized from a regression in the quire crate. This looks pretty intentional, however, so I just wanted to confirm! Was this intentional, and are we comfortable letting this slide through?

cc @jseyfried

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions