Don't add associated type bound for non-types
This commit is contained in:
parent
b03864d546
commit
e4cf708d2f
5 changed files with 51 additions and 10 deletions
|
@ -918,3 +918,12 @@ pub struct UnusedAssociatedTypeBounds {
|
|||
#[suggestion(code = "")]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(hir_analysis_assoc_bound_on_const)]
|
||||
#[note]
|
||||
pub struct AssocBoundOnConst {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub descr: &'static str,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue