salsa/tests/compile-fail/get-on-private-tracked-field.rs
2024-07-19 07:12:07 -04:00

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() {}