Skip to content

Commit 912ad68

Browse files
committed
fixed nonzero tests
1 parent ce30d4e commit 912ad68

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libcore/tests/nonzero.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use core::num::{NonZeroU32, NonZeroI32};
2-
use core::option::Option;
3-
use core::option::Option::{Some, None};
1+
use core::num::{IntErrorKind, NonZeroU8, NonZeroU32, NonZeroI32, ParseIntError};
2+
use core::option::Option::{self, Some, None};
43
use std::mem::size_of;
54

65
#[test]
@@ -143,7 +142,7 @@ fn test_from_str() {
143142
})
144143
);
145144
assert_eq!(
146-
"129".parse::<NonZeroU8>(),
145+
"257".parse::<NonZeroU8>(),
147146
Err(ParseIntError {
148147
kind: IntErrorKind::Overflow
149148
})

0 commit comments

Comments
 (0)