salsa/tests/compile-fail/interned_struct_incompatibles.rs

38 lines
548 B
Rust
Raw Normal View History

2024-07-19 11:29:18 +00:00
#[salsa::interned(return_ref)]
struct InternedWithRetRef {
2024-07-19 11:29:18 +00:00
field: u32,
}
2024-07-19 11:29:18 +00:00
#[salsa::interned(specify)]
struct InternedWithSpecify {
2024-07-19 11:29:18 +00:00
field: u32,
}
2024-07-19 11:29:18 +00:00
#[salsa::interned(no_eq)]
struct InternedWithNoEq {
2024-07-19 11:29:18 +00:00
field: u32,
}
2024-07-19 11:29:18 +00:00
#[salsa::interned(db = Db)]
struct InternedWithDb {
2024-07-19 11:29:18 +00:00
field: u32,
}
2024-07-19 11:29:18 +00:00
#[salsa::interned(recover_fn = recover)]
struct InternedWithRecover {
2024-07-19 11:29:18 +00:00
field: u32,
}
2024-07-19 11:29:18 +00:00
#[salsa::interned(lru = 12)]
struct InternedWithLru {
2024-07-19 11:29:18 +00:00
field: u32,
}
2024-07-19 11:29:18 +00:00
#[salsa::interned]
struct InternedWithIdField {
#[id]
field: u32,
}
fn main() {}