Fix a grammatical mistake in "expected generic arguments" errors

This commit is contained in:
varkor 2018-08-22 12:15:29 +01:00
parent 24bc544db4
commit c9c4f5ef78
3 changed files with 3 additions and 3 deletions

View file

@ -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 { "" },
)
};

View file

@ -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

View file

@ -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