-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
Given the code:
fn too_many_type_params() -> Option<i64, i64> {
None
}
rustc reports:
error[E0244]: wrong number of type arguments
--> <anon>:1:30
|
1 | fn too_many_type_params() -> Option<i64, i64> {
| ^^^^^^^^^^^^^^^^ expected 1 type arguments, found 2
Ideally error messages would use correct plurals, so 'expected 1 type argument, found 2' in this case.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints