-
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 lintsC-bugCategory: This is a bug.Category: This is a bug.
Description
error[E0244]: wrong number of type arguments: expected 0, found 1 | |
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:13 | |
| | |
LL | fn f<F:Trait(isize) -> isize>(x: F) {} | |
| ^^^^^^^^^^^^^^^^ unexpected type argument |
The unexpected type argument here should be just
isize
(it should end at the )
). This syntax is just for function arguments, so it's probably something to do with the desugaring.Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.