salsa/tests/compile-fail/tracked_struct_incompatibles.rs
Niko Matsakis 68a3a7fceb wip
2024-07-19 08:05:39 -04:00

31 lines
488 B
Rust

#[salsa::tracked(return_ref)]
struct TrackedWithRetRef {
field: u32,
}
#[salsa::tracked(specify)]
struct TrackedSructWithSpecify {
field: u32,
}
#[salsa::tracked(no_eq)]
struct TrackedStructWithNoEq {
field: u32,
}
#[salsa::tracked(db = Db)]
struct TrackedStructWithDb {
field: u32,
}
#[salsa::tracked(recover_fn = recover)]
struct TrackedStructWithRecover {
field: u32,
}
#[salsa::tracked(lru = 12)]
struct TrackedStructWithLru {
field: u32,
}
fn main() {}