Skip to content

Commit

Permalink
Fix a grammatical mistake in "expected generic arguments" errors
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Aug 22, 2018
1 parent 24bc544 commit c9c4f5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_typeck/astconv.rs
Expand Up @@ -371,7 +371,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx>+'o {
quantifier,
bound,
kind,
if required != 1 { "s" } else { "" },
if bound != 1 { "s" } else { "" },
)
};

Expand Down
Expand Up @@ -2,7 +2,7 @@ error[E0244]: wrong number of type arguments: expected at most 2, found 3
--> $DIR/generic-impl-more-params-with-defaults.rs:23:5
|
LL | Vec::<isize, Heap, bool>::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at most 2 type argument
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at most 2 type arguments

error: aborting due to previous error

Expand Down
Expand Up @@ -2,7 +2,7 @@ error[E0244]: wrong number of type arguments: expected at most 2, found 3
--> $DIR/generic-type-more-params-with-defaults.rs:19:12
|
LL | let _: Vec<isize, Heap, bool>;
| ^^^^^^^^^^^^^^^^^^^^^^ expected at most 2 type argument
| ^^^^^^^^^^^^^^^^^^^^^^ expected at most 2 type arguments

error: aborting due to previous error

Expand Down

0 comments on commit c9c4f5e

Please sign in to comment.