Skip to content

Generic parameters in some paths in patterns are ignored #16353

@huonw

Description

@huonw

The following compiles fine (the Some::<u8> line does not, however).

fn main() {
    match Some("foo") {
        None::<int> => {}
        // Some::<u8>(_) => {}
        Some(_) => {}
    }
}  

(Nominated for backcompat-lang :( since changing this can cause programs to break.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions