X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_middle%2Fsrc%2Ferror.rs;h=5e94da8cb4d36ed4179dcaf43ab0ea4e3c668abd;hb=980bf1979e28b4acc4e189b4266afd5f58b68d6d;hp=43903e6739f9195bd56bdfdecde6e38226f86fea;hpb=ddf055ad07b93d27c826e737b674b65ab760e901;p=rust.git diff --git a/compiler/rustc_middle/src/error.rs b/compiler/rustc_middle/src/error.rs index 43903e6739f..5e94da8cb4d 100644 --- a/compiler/rustc_middle/src/error.rs +++ b/compiler/rustc_middle/src/error.rs @@ -64,3 +64,11 @@ pub(crate) struct StrictCoherenceNeedsNegativeCoherence { #[label] pub attr_span: Option, } + +#[derive(Diagnostic)] +#[diag(middle_const_not_used_in_type_alias)] +pub(super) struct ConstNotUsedTraitAlias { + pub ct: String, + #[primary_span] + pub span: Span, +}