Migrate diagnostic

This commit is contained in:
Michael Goulet 2023-02-21 04:14:06 +00:00
parent 4b23a224ab
commit bdacc8bdd9
3 changed files with 18 additions and 10 deletions

View file

@ -1147,3 +1147,13 @@ pub enum PlaceholderRelationLfNotSatisfied {
note: (),
},
}
#[derive(Diagnostic)]
#[diag(infer_opaque_captures_lifetime, code = "E0700")]
pub struct OpaqueCapturesLifetime<'tcx> {
#[primary_span]
pub span: Span,
#[label]
pub opaque_ty_span: Span,
pub opaque_ty: Ty<'tcx>,
}