Don't add associated type bound for non-types

This commit is contained in:
Michael Goulet 2023-08-11 21:27:52 +00:00
parent b03864d546
commit e4cf708d2f
5 changed files with 51 additions and 10 deletions

View file

@ -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,
}