salsa/tests/compile-fail/interned_struct_incompatibles.rs
Niko Matsakis 6377dbadb8 wip
2024-07-19 07:29:18 -04:00

37 lines
548 B
Rust

#[salsa::interned(return_ref)]
struct InternedWithRetRef {
field: u32,
}
#[salsa::interned(specify)]
struct InternedWithSpecify {
field: u32,
}
#[salsa::interned(no_eq)]
struct InternedWithNoEq {
field: u32,
}
#[salsa::interned(db = Db)]
struct InternedWithDb {
field: u32,
}
#[salsa::interned(recover_fn = recover)]
struct InternedWithRecover {
field: u32,
}
#[salsa::interned(lru = 12)]
struct InternedWithLru {
field: u32,
}
#[salsa::interned]
struct InternedWithIdField {
#[id]
field: u32,
}
fn main() {}