From 5113f2157c5aa257ad7ebf555cb6a551701d169a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 10 Aug 2026 10:19:49 +0100 Subject: Add generic struct example without any outputs --- examples/05-box/output/rust/src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/05-box/output/rust/src/lib.rs (limited to 'examples/05-box/output/rust/src/lib.rs') diff --git a/examples/05-box/output/rust/src/lib.rs b/examples/05-box/output/rust/src/lib.rs new file mode 100644 index 0000000..a324869 --- /dev/null +++ b/examples/05-box/output/rust/src/lib.rs @@ -0,0 +1,14 @@ +mod point; + +#[cfg(test)] +mod test { + use super::point::{Line, Point}; + + #[test] + fn line_fields() { + let line = Line { + start: Box::new(Point { x: 10, y: 25 }), + end: Box::new(Point { x: 42, y: 47 }), + }; + } +} -- cgit v1.2.3