Skip to content

Several type errors incorrectly still have type variables in them #2652

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

Closed
msullivan opened this issue Jun 20, 2012 · 0 comments
Closed

Several type errors incorrectly still have type variables in them #2652

msullivan opened this issue Jun 20, 2012 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot.

Comments

@msullivan
Copy link
Contributor

For example:
Compiling

fn main() {
    let z = ();
    let y = z[0];
}

results in

nubs/unboxed_vecs.rs:4:12: 4:15 error: cannot index a value of type `<V1>`
nubs/unboxed_vecs.rs:4     let y = z[0];

I think this is because code is calling ty_to_str instead of fcx.infcx.ty_to_str.

@ghost ghost assigned msullivan Jun 20, 2012
@msullivan msullivan removed their assignment Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot.
Projects
None yet
Development

No branches or pull requests

1 participant