From 021634785b7c3b82c1203f490813008a95dffa1e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 24 Jul 2026 23:32:04 +0100 Subject: Store list of shared values in example --- examples/11-transient-0/output/rust/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/11-transient-0/output/rust/src/lib.rs') diff --git a/examples/11-transient-0/output/rust/src/lib.rs b/examples/11-transient-0/output/rust/src/lib.rs index 6368af2..6675c4c 100644 --- a/examples/11-transient-0/output/rust/src/lib.rs +++ b/examples/11-transient-0/output/rust/src/lib.rs @@ -171,7 +171,11 @@ mod test { #[test] fn struct_with_shared() { - let value = StructWithShared { inner: Arc::new(StructWithInt32 { a: 10, b: 25 }) }; + let value = StructWithShared { + inner: vec![ + Arc::new(StructWithInt32 { a: 10, b: 25 }), + ], + }; assert_round_trip_encoding( value, -- cgit v1.2.3