salsa/tests/compile-fail/tracked_struct_incompatibles.rs

32 lines
488 B
Rust
Raw Normal View History

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