diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 56ccea19b8a3f..eb8a51b18a5d2 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -4801,7 +4801,7 @@ impl ParseIntError { for integer parsing", issue = "22639")] pub fn kind(&self) -> &IntErrorKind { - self.kind + &self.kind } #[unstable(feature = "int_error_internals", reason = "available through Error trait and this method should \