blob: 58a90964121553de90ba674e69e07bf4e649736e [file] [log] [blame]
// run-pass
pub fn main() {
// sometimes we have had trouble finding
// the right type for f, as we unified
// bot and u32 here
let f = match "1234".parse::<usize>().ok() {
None => return (),
Some(num) => num as u32
};
assert_eq!(f, 1234);
println!("{}", f)
}