salsa/tests/compile-fail/interned_struct_unknown_attribute.rs
puuuuh 8924db1441
Some checks are pending
Release-plz / Release-plz PR (push) Waiting to run
Book / Book (push) Waiting to run
Book / Deploy (push) Blocked by required conditions
Release-plz / Release-plz release (push) Waiting to run
Test / Test (push) Waiting to run
Test / Benchmarks (push) Waiting to run
Test / Miri (push) Waiting to run
Test / Shuttle (push) Waiting to run
Preserve attributes on interned/tracked struct fields (#905)
* Preserve attributes on interned/tracked structs

* Pass unknown attributes from fields to getter functions in inputs
2025-06-10 06:34:54 +00:00

11 lines
196 B
Rust

#[salsa::interned]
struct UnknownAttributeInterned {
/// Test doc comment
field: bool,
#[unknown_attr]
field2: bool,
#[salsa::tracked]
wrong_tracked: bool,
}
fn main() {}