Skip to content

Commit

Permalink
Auto merge of #238 - bluss:fix-mut, r=cuviper
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
homu committed Oct 24, 2016
2 parents 8d4b7b3 + 96e96ef commit 938ec63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traits/src/int.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 938ec63

Please sign in to comment.