1
Fork 0

Require any function with a tait in its signature to actually constrain a hidden type

This commit is contained in:
Oli Scherer 2024-06-10 16:17:38 +00:00
parent 39e7bf6826
commit 0bc2001879
116 changed files with 1524 additions and 708 deletions

View file

@ -390,6 +390,17 @@ pub struct TaitForwardCompat {
pub item_span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_tait_forward_compat2)]
#[note]
pub struct TaitForwardCompat2 {
#[primary_span]
pub span: Span,
#[note(hir_analysis_opaque)]
pub opaque_type_span: Span,
pub opaque_type: String,
}
pub struct MissingTypeParams {
pub span: Span,
pub def_span: Span,