]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/error.rs
Rollup merge of #106859 - tialaramex:master, r=Nilstrieb
[rust.git] / compiler / rustc_middle / src / error.rs
index 43903e6739f9195bd56bdfdecde6e38226f86fea..5e94da8cb4d36ed4179dcaf43ab0ea4e3c668abd 100644 (file)
@@ -64,3 +64,11 @@ pub(crate) struct StrictCoherenceNeedsNegativeCoherence {
     #[label]
     pub attr_span: Option<Span>,
 }
+
+#[derive(Diagnostic)]
+#[diag(middle_const_not_used_in_type_alias)]
+pub(super) struct ConstNotUsedTraitAlias {
+    pub ct: String,
+    #[primary_span]
+    pub span: Span,
+}