rust-analyzer/crates/ra-salsa/tests/macros.rs
2024-10-14 10:09:22 -04:00

12 lines
300 B
Rust

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