Add a helpful suggestion
This commit is contained in:
parent
973bbfbd23
commit
fde695a2d1
7 changed files with 43 additions and 57 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue