Default RHS to Self for Div and Shl

This fixes a consistency issue with the other operator traits.
This commit is contained in:
Nathaniel McCallum 2018-04-06 09:48:17 -04:00
parent 512380148e
commit 585e11549e

View File

@ -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;
}