Auto merge of #964 - npmccallum:master, r=alexcrichton
Default RHS to Self for Div and Shl This fixes a consistency issue with the other operator traits.
This commit is contained in:
commit
cc835c9a76
@ -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