3ea596a218
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
12 lines
190 B
Rust
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);
|
|
}
|