#[salsa::query_group] trait MyDatabase: salsa::Database { #[salsa::invoke(another_module::another_name)] fn my_query(&self, key: ()) -> (); } mod another_module { pub(crate) fn another_name(_: &impl crate::MyDatabase, (): ()) -> () {} } fn main() {}