Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index d975312..2e30c9f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,6 +9,14 @@ pub trait VisitorError<'value, 'ctx: 'value> { fn wrong_hint<P: Protocol<'value, 'ctx>>() -> Self; } +pub struct A<'value>(&'value str); + +impl<'value, 'ctx: 'value> VisitorError<'value, 'ctx> for A<'value> { + fn wrong_hint<P: Protocol<'value, 'ctx>>() -> Self { + todo!() + } +} + #[derive(thiserror::Error, Debug)] pub enum UniError<WalkerErr, VisitorErr> { #[error(transparent)] |