-
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 lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Description
From: src/test/compile-fail/E0088.rs
Error E0088 needs to be updated with a span_label, taking it from:
error[E0088]: too many lifetime parameters provided: expected 0 parameters, found 1 parameter
--> src/test/compile-fail/E0088.rs:14:9
|
14 | f::<'static>(); //~ ERROR E0088
| ^^^^^^^
To:
error[E0088]: too many lifetime parameters provided: expected 0 parameters, found 1 parameter
--> src/test/compile-fail/E0088.rs:14:9
|
14 | f::<'static>(); //~ ERROR E0088
| ^^^^^^^ 0 lifetime parameters expected
Bonus: we may want to detect the 0 case and say:
error[E0088]: too many lifetime parameters provided: expected 0 parameters, found 1 parameter
--> src/test/compile-fail/E0088.rs:14:9
|
14 | f::<'static>(); //~ ERROR E0088
| ^^^^^^^ unexpected lifetime parameter
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.