mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-28 17:42:00 +00:00
12 lines
203 B
Rust
12 lines
203 B
Rust
mod a {
|
|
#[salsa::tracked]
|
|
pub struct MyTracked<'db> {
|
|
field: u32,
|
|
}
|
|
}
|
|
|
|
fn test<'db>(db: &'db dyn salsa::Database, tracked: a::MyTracked<'db>) {
|
|
tracked.field(db);
|
|
}
|
|
|
|
fn main() {}
|