mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 22:13:39 +00:00
12 lines
291 B
Rust
12 lines
291 B
Rust
#[salsa::query_group(MyStruct)]
|
|
trait MyDatabase: salsa::Database {
|
|
#[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() {}
|