2023-07-25 22:27:15 +01:00
|
|
|
const _OK: () = match i32::from_str_radix("-1234", 10) {
|
|
|
|
|
Ok(x) => assert!(x == -1234),
|
|
|
|
|
Err(_) => panic!(),
|
|
|
|
|
};
|
2025-05-28 10:29:08 +00:00
|
|
|
const _TOO_LOW: () = { u64::from_str_radix("12345ABCD", 1); }; //~ ERROR radix must lie in the range `[2, 36]`
|
|
|
|
|
const _TOO_HIGH: () = { u64::from_str_radix("12345ABCD", 37); }; //~ ERROR radix must lie in the range `[2, 36]`
|
2023-07-25 22:27:15 +01:00
|
|
|
|
|
|
|
|
fn main () {}
|