Skip to content

Commit 096da58

Browse files
committed
Fix test using wrong type
1 parent 942bafa commit 096da58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/tests/num/int_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ macro_rules! int_module {
247247
assert_eq!($T::from_str_radix("Z", 35).ok(), None::<$T>);
248248
assert_eq!($T::from_str_radix("-9", 2).ok(), None::<$T>);
249249
assert_eq!($T::from_str_radix("10_0", 10).ok(), None::<$T>);
250-
assert_eq!(u32::from_str_radix("-9", 10).ok(), None::<$T>);
250+
assert_eq!(u32::from_str_radix("-9", 10).ok(), None::<u32>);
251251
}
252252

253253
#[test]

0 commit comments

Comments
 (0)