diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 7c63ca4..b89e94b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -394,6 +394,14 @@ pub enum Warning { /// A code block has an identifier but is not marked as a file or example #[error("Code block has identifier but lacks file or example class. Is this a mistake? #{0} at {1}")] MissingAppropriateClassOnNamedCodeBlock(String, String), + + /// A capture in a binding is missing a name + #[error("{0}: {1} - missing a name for the {2} capture")] + MissingCaptureName(PathBuf, String, String), + + /// A capture in a binding is missing a type + #[error("{0}: {1} - missing a type for the capture called {2}")] + MissingCaptureType(PathBuf, String, String), } /// A list of warnings. |