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
This commit is contained in:
slhx agent
2026-05-25 21:20:18 +02:00
parent a6db4699f7
commit 3ea596a218
4 changed files with 78 additions and 19 deletions
+1 -1
View File
@@ -6,6 +6,6 @@ mod ui {
}
#[test]
fn surface_macro_preserves_inline_module_without_generated_file() {
fn surface_macro_preserves_inline_module_with_generated_file() {
assert_eq!(ui::EXISTING, 1);
}