use spl_program_error::*;
#[derive(
Clone,
Debug,
Eq,
IntoProgramError,
ToStr,
thiserror::Error,
num_derive::FromPrimitive,
num_enum::TryFromPrimitive,
PartialEq,
)]
#[repr(u32)]
pub enum ExampleError {
#[error("Mint has no mint authority")]
MintHasNoMintAuthority,
#[error("Incorrect mint authority has signed the instruction")]
IncorrectMintAuthority,
}
#[test]
fn test_macros_compile() {
let _ = ExampleError::MintHasNoMintAuthority;
}