salsa/salsa-2022-tests/tests/compile-fail/tracked_method_incompatibles.rs

21 lines
No EOL
240 B
Rust

#[salsa::jar(db = Db)]
struct Jar(Tracked);
#[salsa::tracked(jar = Jar)]
struct Tracked {
field: u32,
}
impl Tracked {
#[salsa::tracked]
fn use_tracked(&self) {
}
}
trait Db: salsa::DbWithJar<Jar> {}
fn main() {}