]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/num/error.rs
Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett
[rust.git] / library / core / src / num / error.rs
index 2af61a0748236dd639168e7cd5cd3dcc0a9f8e77..8a9ecbe98dff604a3bc158005236aa66e8dda68e 100644 (file)
@@ -115,6 +115,7 @@ pub enum IntErrorKind {
 
 impl ParseIntError {
     /// Outputs the detailed cause of parsing an integer failing.
+    #[must_use]
     #[stable(feature = "int_error_matching", since = "1.55.0")]
     pub fn kind(&self) -> &IntErrorKind {
         &self.kind