1
Fork 0

Add a helpful suggestion

This commit is contained in:
Michael Goulet 2024-02-06 19:48:16 +00:00
parent 973bbfbd23
commit fde695a2d1
7 changed files with 43 additions and 57 deletions

View file

@ -98,6 +98,8 @@ pub struct MisplacedImplTrait<'a> {
pub struct MisplacedAssocTyBinding {
#[primary_span]
pub span: Span,
#[suggestion(code = " = impl", applicability = "maybe-incorrect", style = "verbose")]
pub suggestion: Option<Span>,
}
#[derive(Diagnostic, Clone, Copy)]