Skip to content

Error message for mismatched type parameter count repeats "parameter(s)" twice #39732

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
shepmaster opened this issue Feb 11, 2017 · 2 comments
Closed

Comments

@shepmaster
Copy link
Member

shepmaster commented Feb 11, 2017

In Rust 1.15.1 and nightly (24a70eb 2017-02-09)

fn foo<A, B>() {}

fn main() {
    foo::<u8>()
}

Produces the error:

error[E0089]: too few type parameters provided: expected 2 parameters parameters, found 1 parameter parameter
 --> src/main.rs:4:5
  |
4 |     foo::<u8>()
  |     ^^^^^^^^^ expected 2 type parameters

Specifically, my issue is with:

expected 2 parameters parameters, found 1 parameter parameter

@shepmaster
Copy link
Member Author

It certainly looks like it would be coming from this bit of code, but on first read it all looks reasonable.

@shepmaster
Copy link
Member Author

Oh, no E0089 is this bit. Makes more sense. Whipping up a patch.

shepmaster added a commit to shepmaster/rust that referenced this issue Feb 13, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Feb 13, 2017
…GuillaumeGomez

Remove duplicated "parameter" in E0089 text

Closes rust-lang#39732
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant