Closed
Description
pub trait Lookup {
type Data;
fn lookup(&self) -> Self::Data;
}
pub trait ItemTreeLoc {
type Id;
}
fn id_to_generics(id: impl Lookup<Data = impl ItemTreeLoc<Id = ()>>)
where
(): Sized, // error below disappears if this is removed
{
id.lookup(); // no method `lookup` on type `impl ItemTreeLoc<Id = ()>
}