salsa/tests/compile-fail/get-on-private-tracked-field.rs

13 lines
203 B
Rust
Raw Normal View History

2024-07-19 11:12:07 +00:00
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() {}