diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-24 23:32:04 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-24 23:32:04 +0100 |
| commit | 021634785b7c3b82c1203f490813008a95dffa1e (patch) | |
| tree | 061bd96f4f8246b2f45e5b63d216672182e5f97c /examples/11-transient-0/output/rust/src/lib.rs | |
| parent | 681da8f2c1d85dcda5a676fccaa04415c6adbdcb (diff) | |
Store list of shared values in example
Diffstat (limited to 'examples/11-transient-0/output/rust/src/lib.rs')
| -rw-r--r-- | examples/11-transient-0/output/rust/src/lib.rs | 6 |
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, |
