Files
hemx/slhx-derive/tests/surface.rs
T
slhx agent 3ea596a218 fix(derive): fail missing surface generation
Make #[slhx::surface] report a compile-time error when slhx.generated.rs is absent instead of silently expanding to an empty module. Add compile-fail coverage for the missing generated include path.

req: build/004

req: test/003
2026-05-25 21:20:18 +02:00

12 lines
190 B
Rust

use slhx_derive::surface;
#[surface]
mod ui {
pub const EXISTING: u8 = 1;
}
#[test]
fn surface_macro_preserves_inline_module_with_generated_file() {
assert_eq!(ui::EXISTING, 1);
}