salsa/tests/macros.rs
2018-10-05 10:39:55 -04:00

15 lines
306 B
Rust

salsa::query_group! {
trait MyDatabase: salsa::Database {
fn my_query(key: ()) -> () {
type MyQuery;
use fn another_module::another_name;
}
}
}
mod another_module {
pub(crate) fn another_name(_: &impl crate::MyDatabase, (): ()) -> () {}
}
fn main() {}