Skip to content
Snippets Groups Projects
Commit 585e1154 authored by Nathaniel McCallum's avatar Nathaniel McCallum
Browse files

Default RHS to Self for Div and Shl

This fixes a consistency issue with the other operator traits.
parent 51238014
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment