aboutsummaryrefslogtreecommitdiff
path: root/src/checker_set.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker_set.rs')
-rw-r--r--src/checker_set.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/checker_set.rs b/src/checker_set.rs
index 626f74d..98e10ec 100644
--- a/src/checker_set.rs
+++ b/src/checker_set.rs
@@ -276,7 +276,9 @@ impl CheckerState {
.collect::<Result<Vec<_>, _>>()?;
let owner = arm_owners[0]; // safe because of the above decision about bottom
if !arm_owners.into_iter().all(|o| self.equal(owner, o)) {
- return Err(CheckerError::IncosistentCaseScrutineeSet(element.clone()));
+ return Err(CheckerError::ElementInconsistentCaseScrutineeSet(
+ element.clone(),
+ ));
}
// all cases are handled