1
Fork 0

Improve parse errors for lifetimes in type position

This commit is contained in:
León Orell Valerian Liehr 2025-04-14 20:48:51 +02:00
parent 97c966bb40
commit 8887af72a0
No known key found for this signature in database
GPG key ID: D17A07215F68E713
14 changed files with 234 additions and 42 deletions

View file

@ -2806,6 +2806,8 @@ pub(crate) struct ReturnTypesUseThinArrow {
pub(crate) struct NeedPlusAfterTraitObjectLifetime {
#[primary_span]
pub span: Span,
#[suggestion(code = " + /* Trait */", applicability = "has-placeholders")]
pub suggestion: Span,
}
#[derive(Diagnostic)]