Add PatKind::Err

This commit is contained in:
Lieselotte
2024-01-17 03:14:16 +01:00
parent 6ed31aba1a
commit 7889e99b55
23 changed files with 66 additions and 24 deletions

View File

@@ -1838,6 +1838,11 @@ impl<'a> State<'a> {
self.commasep(Inconsistent, after, |s, p| s.print_pat(p));
self.word("]");
}
PatKind::Err(_) => {
self.popen();
self.word("/*ERROR*/");
self.pclose();
}
}
self.ann.post(self, AnnNode::Pat(pat))
}