diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-21 04:14:06 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-03-03 05:02:34 +0000 |
| commit | bdacc8bdd97f7e6542d38f8c8cf19c555bd18911 (patch) | |
| tree | a5ef3b84a3a3c4ac47e6a49aea6f063314f57731 /compiler/rustc_infer/src/errors/mod.rs | |
| parent | 4b23a224ab644cea703922859f64950898eba90d (diff) | |
| download | rust-bdacc8bdd97f7e6542d38f8c8cf19c555bd18911.tar.gz rust-bdacc8bdd97f7e6542d38f8c8cf19c555bd18911.zip | |
Migrate diagnostic
Diffstat (limited to 'compiler/rustc_infer/src/errors/mod.rs')
| -rw-r--r-- | compiler/rustc_infer/src/errors/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_infer/src/errors/mod.rs b/compiler/rustc_infer/src/errors/mod.rs index 7dccd0bb930..6bbd3fd3e6e 100644 --- a/compiler/rustc_infer/src/errors/mod.rs +++ b/compiler/rustc_infer/src/errors/mod.rs @@ -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>, +} |
