flow_graph_interpreter/
error.rs

1pub use crate::interpreter::error::Error as InterpreterError;
2pub use crate::interpreter::program::validator::error::{OperationInvalid, ValidationError};
3
4#[cfg(test)]
5mod test {
6  use anyhow::Result;
7
8  use super::*;
9  use crate::interpreter::error::StateError;
10  use crate::interpreter::executor::error::ExecutionError;
11
12  const fn sync_send<T>()
13  where
14    T: Sync + Send,
15  {
16  }
17
18  #[test]
19  const fn test_sync_send() -> Result<()> {
20    sync_send::<InterpreterError>();
21    sync_send::<OperationInvalid>();
22    sync_send::<ValidationError>();
23    sync_send::<ExecutionError>();
24    sync_send::<InterpreterError>();
25    sync_send::<StateError>();
26
27    Ok(())
28  }
29}