Improve parse errors for lifetimes in type position
This commit is contained in:
parent
97c966bb40
commit
8887af72a0
14 changed files with 234 additions and 42 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue