diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2025-01-13 08:10:40 -0500 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2025-01-13 08:10:53 -0500 |
| commit | 06fdf3df2ce1fdfec057ac3c43f0fc0ea80aec63 (patch) | |
| tree | d571448ceb83ae10add96eae1f13eadd532fdcc5 /example | |
| parent | b4418b896c163f935bf0f48e7c1fa62cd2a3baaf (diff) | |
Use mini_core in the tests
Diffstat (limited to 'example')
| -rw-r--r-- | example/mini_core.rs | 8 |
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; |
