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

21 lines
240 B
Rust
Raw Normal View History

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