summaryrefslogtreecommitdiff
path: root/examples/03-inductive-data-types
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-14 21:15:55 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-14 21:15:55 +0100
commit3e9a68f0235158f5ee2c70cb6b319b26e42fd810 (patch)
tree7f6ac5762feb9bff047f67e7e77ba48f9fc45e96 /examples/03-inductive-data-types
parente5f4a367a810d70a6f2cbe048ca1fd78549f1d28 (diff)
Combine Rust notions of paths
Diffstat (limited to 'examples/03-inductive-data-types')
-rw-r--r--examples/03-inductive-data-types/output/rust/src/arithmetic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/03-inductive-data-types/output/rust/src/arithmetic.rs b/examples/03-inductive-data-types/output/rust/src/arithmetic.rs
index c9ea28d..9461bc4 100644
--- a/examples/03-inductive-data-types/output/rust/src/arithmetic.rs
+++ b/examples/03-inductive-data-types/output/rust/src/arithmetic.rs
@@ -2,17 +2,17 @@
#[derive(Debug, PartialEq)]
pub enum Expression {
- Add(::std::boxed::Box<crate::arithmetic::Add>),
+ Add(::std::boxed::Box::<crate::arithmetic::Add>),
Const(crate::arithmetic::Const),
}
-impl ::std::convert::From<crate::arithmetic::Add> for crate::arithmetic::Expression {
+impl ::std::convert::From::<crate::arithmetic::Add> for crate::arithmetic::Expression {
fn from(value: crate::arithmetic::Add) -> Self {
Self::Add(::std::boxed::Box::new(value))
}
}
-impl ::std::convert::From<crate::arithmetic::Const> for crate::arithmetic::Expression {
+impl ::std::convert::From::<crate::arithmetic::Const> for crate::arithmetic::Expression {
fn from(value: crate::arithmetic::Const) -> Self {
Self::Const(value)
}