@@ -375,7 +375,7 @@ bitxor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
375
375
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
376
376
#[ rustc_on_unimplemented( message="no implementation for `{Self} << {RHS}`" ,
377
377
label="no implementation for `{Self} << {RHS}`" ) ]
378
- pub trait Shl < RHS > {
378
+ pub trait Shl < RHS = Self > {
379
379
/// The resulting type after applying the `<<` operator.
380
380
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
381
381
type Output ;
@@ -482,7 +482,7 @@ shl_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 isize i128 }
482
482
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
483
483
#[ rustc_on_unimplemented( message="no implementation for `{Self} >> {RHS}`" ,
484
484
label="no implementation for `{Self} >> {RHS}`" ) ]
485
- pub trait Shr < RHS > {
485
+ pub trait Shr < RHS = Self > {
486
486
/// The resulting type after applying the `>>` operator.
487
487
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
488
488
type Output ;
@@ -738,7 +738,7 @@ bitxor_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
738
738
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
739
739
#[ rustc_on_unimplemented( message="no implementation for `{Self} <<= {Rhs}`" ,
740
740
label="no implementation for `{Self} <<= {Rhs}`" ) ]
741
- pub trait ShlAssign < Rhs > {
741
+ pub trait ShlAssign < Rhs = Self > {
742
742
/// Performs the `<<=` operation.
743
743
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
744
744
fn shl_assign ( & mut self , rhs : Rhs ) ;
0 commit comments