summaryrefslogtreecommitdiff
path: root/examples/11-transient-0/output/rust/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/11-transient-0/output/rust/src/lib.rs')
-rw-r--r--examples/11-transient-0/output/rust/src/lib.rs6
1 files changed, 5 insertions, 1 deletions
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,