Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
huonw opened this issue Nov 19, 2014 · 0 comments · Fixed by #19211
Closed

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

huonw opened this issue Nov 19, 2014 · 0 comments · Fixed by #19211
Labels
A-grammar Area: The grammar of Rust

Comments

@huonw
Copy link
Member

huonw commented Nov 19, 2014

#![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

@huonw huonw added the A-grammar Area: The grammar of Rust label Nov 19, 2014
lnicola pushed a commit to lnicola/rust that referenced this issue Mar 3, 2025
Allow rust-project.json to specify sysroot workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grammar Area: The grammar of Rust
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant