use crate::{Error, LocationInFile}; /// Exit a program pub fn exit(error_code: Option) -> ! { loop {} } pub struct GenericError { pub error_id: u128, // location: LocationInFile<'a>, // a_lil_message_as_a_treat: &'a str, } impl Error for GenericError { fn id(&self) -> u128 { self.error_id } }