salsa/tests/compile-fail/get-on-private-interned-field.rs
2024-07-19 07:14:57 -04:00

12 lines
208 B
Rust

mod a {
#[salsa::interned]
pub struct MyInterned<'db> {
field: u32,
}
}
fn test<'db>(db: &'db dyn salsa::Database, interned: a::MyInterned<'db>) {
interned.field(db);
}
fn main() {}