Skip to content

Commit 51e1f55

Browse files
committed
add unstable attribute
1 parent d0bac14 commit 51e1f55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/num/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4796,6 +4796,10 @@ pub enum IntErrorKind {
47964796

47974797
impl ParseIntError {
47984798
/// Outputs the detailed cause of parsing an integer failing.
4799+
#[unstable(feature = "int_error_matching",
4800+
reason = "it can be useful to match errors when making error messages \
4801+
for integer parsing",
4802+
issue = "22639")]
47994803
pub fn kind(self) -> IntErrorKind {
48004804
self.kind
48014805
}

0 commit comments

Comments
 (0)