From 8455bb19b7d4235e667cab9112aa276557969dcc Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 5 Aug 2026 18:44:26 +0100 Subject: Type check generic native types --- examples/12-shared/output/rust/src/point.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/12-shared/output/rust/src/point.rs (limited to 'examples/12-shared/output/rust/src/point.rs') diff --git a/examples/12-shared/output/rust/src/point.rs b/examples/12-shared/output/rust/src/point.rs new file mode 100644 index 0000000..7bc470a --- /dev/null +++ b/examples/12-shared/output/rust/src/point.rs @@ -0,0 +1,15 @@ +// Generated by hobgoblin. + +/// A straight line from one point to another. +#[derive(Clone, Debug, Hash, PartialEq)] +pub struct Line { + pub start: ::std::sync::Arc::, + pub end: ::std::sync::Arc::, +} + +/// A 2D point. +#[derive(Clone, Debug, Hash, PartialEq)] +pub struct Point { + pub x: ::core::primitive::i32, + pub y: ::core::primitive::i32, +} -- cgit v1.2.3