aboutsummaryrefslogtreecommitdiff
path: root/src/libs/intertrait/cast/error.rs
blob: 74eb3cadb09d4357eaa8f821f60e6a186afdc367 (plain)
1
2
3
4
5
6
7
8
9
10
#[derive(thiserror::Error, Debug)]
pub enum CastError
{
    #[error("Failed to cast from trait {from} to trait {to}")]
    CastFailed
    {
        from: &'static str,
        to: &'static str,
    },
}