From 2e5fc0f7f89104506d94716721b9a787deaddeb3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 03:52:39 +0200 Subject: [PATCH] Union tests: the composition body is a boxed Node, the recursive type has finite size Not yet run. Co-Authored-By: Claude Opus 5.5 --- packages/cultcache-rs/tests/union_parity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cultcache-rs/tests/union_parity.rs b/packages/cultcache-rs/tests/union_parity.rs index 69d1764e..ca6d0c50 100644 --- a/packages/cultcache-rs/tests/union_parity.rs +++ b/packages/cultcache-rs/tests/union_parity.rs @@ -63,7 +63,7 @@ struct Composition { #[cultcache(key = 0)] name: String, #[cultcache(key = 1)] - body: Option, + body: Option>, } #[derive(Clone, Debug, PartialEq, CultUnion)] @@ -171,7 +171,7 @@ fn constructed() -> UnionSurface { text("t1", "hello"), Node::Use(UseArm { id: "u1".into(), - composition: Composition { name: "comp".into(), body: Some(inner) }, + composition: Composition { name: "comp".into(), body: Some(std::boxed::Box::new(inner)) }, slots: vec![Some(text("s1", "slot")), None, Some(boxed("b2", vec![]))], }), image("i2", "uri://b", ""),