about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2025-01-13 10:53:58 -0500
committerAntoni Boucher <bouanto@zoho.com>2025-01-13 10:53:58 -0500
commit43b7e28601b7ea0c1d77e6df5f5af97cd55531ff (patch)
treeb87f5d3ec55d5fa824c2dafe8dce8018a175bee2 /example
parentc6f258d884fdcc037bab2daa604dd9cead0d3838 (diff)
Merge commit '59a81c2ca1edc88ad3ac4b27a8e03977ffb8e73a' into subtree-update_cg_gcc_2025_01_12
Diffstat (limited to 'example')
-rw-r--r--example/mini_core.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs
index cdd151613df..bd7a4612a92 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -170,6 +170,14 @@ impl Add for usize {
     }
 }
 
+impl Add for isize {
+    type Output = Self;
+
+    fn add(self, rhs: Self) -> Self {
+        self + rhs
+    }
+}
+
 #[lang = "sub"]
 pub trait Sub<RHS = Self> {
     type Output;