diff options
Diffstat (limited to 'compiler/src/ast/error.rs')
| -rw-r--r-- | compiler/src/ast/error.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/src/ast/error.rs b/compiler/src/ast/error.rs new file mode 100644 index 0000000..11f552d --- /dev/null +++ b/compiler/src/ast/error.rs | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | use std::{error, fmt}; | ||
| 2 | |||
| 3 | #[derive(Debug)] | ||
| 4 | pub enum Error {} | ||
| 5 | |||
| 6 | impl fmt::Display for Error { | ||
| 7 | fn fmt(&self, _f: &mut fmt::Formatter) -> fmt::Result { | ||
| 8 | todo!() | ||
| 9 | } | ||
| 10 | } | ||
| 11 | |||
| 12 | impl error::Error for Error {} | ||
