rust/compiler/rustc_infer/src/errors.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
321 B
Rust
Raw Normal View History

use rustc_macros::Diagnostic;
use rustc_span::Span;
2022-08-30 15:28:50 +00:00
#[derive(Diagnostic)]
2022-10-22 09:07:54 +00:00
#[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,
}