From 363fbc6e98f832471a17a10ec18e8823df6a2ed5 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 16 Apr 2026 21:31:57 +0800 Subject: Initialize Rust project with billing calculation functionality --- src/error.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/error.rs (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs new file mode 100644 index 0000000..a9c23b1 --- /dev/null +++ b/src/error.rs @@ -0,0 +1,8 @@ +#[derive(thiserror::Error, Debug)] +pub enum BillSplitError { + #[error("Paid amount cannot be negative")] + NegativePaidAmount, + + #[error("Duplicate split members found")] + DuplicateSplitMembers, +} -- cgit