diff options
| -rw-r--r-- | library/core/tests/num/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/num/mod.rs b/library/core/tests/num/mod.rs index 4fd9f721b82..12e52252278 100644 --- a/library/core/tests/num/mod.rs +++ b/library/core/tests/num/mod.rs @@ -66,6 +66,7 @@ where assert_eq!(ten.rem(two), ten % two); } +/// Helper function for asserting number parsing returns a specific error fn test_parse<T>(num_str: &str, expected: Result<T, IntErrorKind>) where T: FromStr<Err = ParseIntError>, |
