Skip to content

Commit 3b0fc3c

Browse files
committed
Add useful attributes
1 parent 2d1cd9a commit 3b0fc3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/num/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4771,7 +4771,10 @@ pub struct ParseIntError {
47714771
pub kind: IntErrorKind,
47724772
}
47734773

4774+
#[unstable(feature = "int_error_matching",
4775+
reason = "it can be useful to match errors when making error messages for integer parsing")]
47744776
#[derive(Debug, Clone, PartialEq, Eq)]
4777+
#[non_exhaustive]
47754778
pub enum IntErrorKind {
47764779
Empty,
47774780
InvalidDigit,

0 commit comments

Comments
 (0)