浏览代码

Auto merge of #238 - bluss:fix-mut, r=cuviper

traits: 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).

See rust-lang/rust/pull/37378 for context.
Homu 8 年之前
父节点
当前提交
938ec63c95
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      traits/src/int.rs

+ 1 - 1
traits/src/int.rs

@@ -274,7 +274,7 @@ pub trait PrimInt
     ///
     /// assert_eq!(2i32.pow(4), 16);
     /// ```
-    fn pow(self, mut exp: u32) -> Self;
+    fn pow(self, exp: u32) -> Self;
 }
 
 macro_rules! prim_int_impl {