Remove pattern in trait's method signature
This use of `mut` was nonsensical for now, but is proposed to be disallowed by rustc in the future (as a bugfix in Rust).
This commit is contained in:
parent
8d4b7b3a8d
commit
96e96ef762
|
@ -274,7 +274,7 @@ pub trait PrimInt
|
||||||
///
|
///
|
||||||
/// assert_eq!(2i32.pow(4), 16);
|
/// assert_eq!(2i32.pow(4), 16);
|
||||||
/// ```
|
/// ```
|
||||||
fn pow(self, mut exp: u32) -> Self;
|
fn pow(self, exp: u32) -> Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! prim_int_impl {
|
macro_rules! prim_int_impl {
|
||||||
|
|
Loading…
Reference in New Issue