diff options
Diffstat (limited to 'compiler/rustc_infer/src/errors.rs')
| -rw-r--r-- | compiler/rustc_infer/src/errors.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_infer/src/errors.rs b/compiler/rustc_infer/src/errors.rs new file mode 100644 index 00000000000..76ea9c3433d --- /dev/null +++ b/compiler/rustc_infer/src/errors.rs @@ -0,0 +1,14 @@ +use rustc_macros::Diagnostic; +use rustc_span::Span; + +#[derive(Diagnostic)] +#[diag(infer_opaque_hidden_type)] +pub(crate) struct OpaqueHiddenTypeDiag { + #[primary_span] + #[label] + pub span: Span, + #[note(infer_opaque_type)] + pub opaque_type: Span, + #[note(infer_hidden_type)] + pub hidden_type: Span, +} |
