Skip to content

Type inference regression on beta using as _ #45480

Closed
@bstrie

Description

@bstrie

Spotted by @gankro :

fn main() {
    let mut x: u64 = 0;
    let y: u32 = 0;
    x += y as _;   // Compiles on stable, fails on beta/nightly
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inferenceArea: Type inferenceT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions