salsa/tests/compile-fail/accumulator_incompatibles.rs

26 lines
519 B
Rust
Raw Normal View History

2024-07-19 11:08:11 +00:00
#[salsa::accumulator(return_ref)]
struct AccWithRetRef(u32);
2024-07-19 11:08:11 +00:00
#[salsa::accumulator(specify)]
struct AccWithSpecify(u32);
2024-07-19 11:08:11 +00:00
#[salsa::accumulator(no_eq)]
struct AccWithNoEq(u32);
2024-07-19 11:08:11 +00:00
#[salsa::accumulator(data = MyAcc)]
struct AccWithData(u32);
2024-07-19 11:08:11 +00:00
#[salsa::accumulator(db = Db)]
struct AcWithcDb(u32);
2024-07-19 11:08:11 +00:00
#[salsa::accumulator(recover_fn = recover)]
struct AccWithRecover(u32);
2024-07-19 11:08:11 +00:00
#[salsa::accumulator(lru = 12)]
struct AccWithLru(u32);
2024-07-19 11:08:11 +00:00
#[salsa::accumulator(constructor = Constructor)]
struct AccWithConstructor(u32);
2024-07-19 11:08:11 +00:00
fn main() {}