9 lines
261 B
Rust
9 lines
261 B
Rust
const _OK: () = match i32::from_str_radix("-1234", 10) {
|
|
Ok(x) => assert!(x == -1234),
|
|
Err(_) => panic!(),
|
|
};
|
|
const _TOO_LOW: () = { u64::from_str_radix("12345ABCD", 1); };
|
|
const _TOO_HIGH: () = { u64::from_str_radix("12345ABCD", 37); };
|
|
|
|
fn main () {}
|