about summary refs log tree commit diff
path: root/example/mini_core.rs
diff options
context:
space:
mode:
Diffstat (limited to 'example/mini_core.rs')
-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;