Skip to content

x.0::<T> is legal #19096

Closed
Closed
@huonw

Description

@huonw
#![feature(tuple_indexing)]

fn main() {
    let t = (0i,);
    println!("{}", t.0::<Vec<uint>>)
}

Compiles and prints 0. Generic type parameters on tuple indexing like this should be illegal.

cc #18680

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of Rust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions