Diffstat (limited to 'tests/common/walker.rs')
-rw-r--r--tests/common/walker.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/common/walker.rs b/tests/common/walker.rs
index abe7256..e5f2b7c 100644
--- a/tests/common/walker.rs
+++ b/tests/common/walker.rs
@@ -11,6 +11,7 @@ mock! {
pub fn walk<'a, 'ctx>(self, visitor: DynVisitor<'a, 'ctx>) -> Result<Output, Error>;
pub fn traits(&self, id: TypeNameId) -> &Option<Box<dyn for<'ctx> AnyTrait<'ctx> + Send + Sync>>;
+
pub fn traits_mut(&mut self, id: TypeNameId) -> &mut Option<Box<dyn for<'ctx> AnyTrait<'ctx> + Send + Sync>>;
}
}
@@ -56,4 +57,6 @@ impl<'ctx, Output, Error> AnyTrait<'ctx> for MockWalker<Output, Error> {
.as_mut()
.and_then(|t| t.upcast_to_id_mut(id))
}
+
+ type Available = () where Self: Sized;
}