1
Fork 0

Add a ConstParamTy trait

This commit is contained in:
Maybe Waffle 2023-02-17 13:44:35 +00:00
parent 518d348f87
commit 9a716dafbe
9 changed files with 300 additions and 122 deletions

View file

@ -107,6 +107,14 @@ pub struct CopyImplOnNonAdt {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_const_param_ty_impl_on_non_adt)]
pub struct ConstParamTyImplOnNonAdt {
#[primary_span]
#[label]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_trait_object_declared_with_no_traits, code = "E0224")]
pub struct TraitObjectDeclaredWithNoTraits {