Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/lower/diagnostics.rs')
-rw-r--r--crates/hir-ty/src/lower/diagnostics.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/hir-ty/src/lower/diagnostics.rs b/crates/hir-ty/src/lower/diagnostics.rs
index 009f047109..2565fb46ce 100644
--- a/crates/hir-ty/src/lower/diagnostics.rs
+++ b/crates/hir-ty/src/lower/diagnostics.rs
@@ -81,6 +81,11 @@ pub enum PathLoweringDiagnostic {
def: GenericDefId,
expected_count: u32,
},
+ /// Generic defaults are not allowed to refer to `Self`.
+ GenericDefaultRefersToSelf {
+ /// Index of the `Self` segment.
+ segment: u32,
+ },
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]