diff options
author | Nathaniel McCallum <npmccallum@redhat.com> | 2018-04-06 09:48:17 -0400 |
---|---|---|
committer | Nathaniel McCallum <npmccallum@redhat.com> | 2018-04-06 09:48:17 -0400 |
commit | 585e11549e8f83488afbb3ebc5e33022b1fa7f16 (patch) | |
tree | 493240cd32d6612843ec21bc64b2d439a7c9cdeb /src | |
parent | 512380148ed92164a9e72168632b18d5999598c9 (diff) | |
download | rust-libc-585e11549e8f83488afbb3ebc5e33022b1fa7f16.tar.gz |
Default RHS to Self for Div and Shl
This fixes a consistency issue with the other operator traits.
Diffstat (limited to 'src')
-rw-r--r-- | src/dox.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dox.rs b/src/dox.rs index 1c93efe708..d3f9ccc3ce 100644 --- a/src/dox.rs +++ b/src/dox.rs @@ -68,13 +68,13 @@ mod imp { } #[lang = "div"] - pub trait Div<RHS> { + pub trait Div<RHS=Self> { type Output; fn div(self, rhs: RHS) -> Self::Output; } #[lang = "shl"] - pub trait Shl<RHS> { + pub trait Shl<RHS=Self> { type Output; fn shl(self, rhs: RHS) -> Self::Output; } |