diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-06-12 20:54:38 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-07-26 11:28:04 +0200 |
| commit | de32ddad23abbc831ae60d5efefab0df84e8910b (patch) | |
| tree | 1c71f8ade410be7506733fdff2a254768e0955ca /example/mini_core.rs | |
| parent | bf3ec3be3e595780d842ac3069bb07f3c50f54b8 (diff) | |
| download | rust-de32ddad23abbc831ae60d5efefab0df84e8910b.tar.gz rust-de32ddad23abbc831ae60d5efefab0df84e8910b.zip | |
[WIP] Basic i128 support
Diffstat (limited to 'example/mini_core.rs')
| -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 8c372450abd..745e86de485 100644 --- a/example/mini_core.rs +++ b/example/mini_core.rs @@ -144,6 +144,14 @@ impl Add for usize { } } +impl Add for u128 { + type Output = Self; + + fn add(self, rhs: Self) -> Self { + self + rhs + } +} + #[lang = "sub"] pub trait Sub<RHS = Self> { type Output; |
