Default RHS to Self for Div and Shl
This fixes a consistency issue with the other operator traits.
This commit is contained in:
parent
512380148e
commit
585e11549e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user